Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@adayNU
Copy link
Contributor

@adayNU adayNU commented Nov 22, 2021

I was running into an issue trying to use a Bytes field as the ID field in a Schema, and it appears there is currently an issue with using a Bytes field as the ID field in the entql codegen (it was outputting a function WhereID(p entql.[]byteP)).

I believe this should fix the issue (I tested this by adding the entql flag to the custom id integration test).

I wasn't sure if the other cases I added (e.g. an ID field that is json type / time type / etc.) are actually sane ID field types, but if those don't make any sense I can remove some of those from the added conditionals.

I was running into an issue trying to use a Bytes fieldas the ID field in a Schema, and it appears there is an currently an issue with using a Bytes field as the ID field in the entql codegen (it was outputing a function . I belive this should fix it (I tested this by adding the entql flag to the custom id integration test). I wasn't sure if the other cases I added (e.g. an ID field that is json type / time type / etc.) are actually sane ID field types, but if those don't make any sense I can remove some of those from the added conditionals.
@adayNU
Copy link
Contributor Author

adayNU commented Nov 22, 2021

Also if there is a better place to write a test(s) for this lmk and can happily add.

Copy link
Member

@a8m a8m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @adayNU! Thanks for the contribution 🙏 ❤️

@a8m a8m merged commit b1e76d1 into ent:master Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants