Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace the use of Int for Enums in schema.graphql #27

Open
Alann27 opened this issue Nov 11, 2024 · 0 comments
Open

Replace the use of Int for Enums in schema.graphql #27

Alann27 opened this issue Nov 11, 2024 · 0 comments

Comments

@Alann27
Copy link
Contributor

Alann27 commented Nov 11, 2024

Objective

Replace the use of Int for Enums in schema.graphql.

Origin Document

We replaced the use of enums in the schema.graphql as we thought those fields where being saved in the db with a string type but we were wrong. So why we don't change it back to enums right now?

We need to be able to query some entities by fields that had as a type an enum. To be able to query by those fields, those fields must have the @index directive in the schema.graphql but you cannot use an enum type and the @index directive at the same time (if you do that you will get an error).

For the moment we are going to stick with the Int type but as soon as we found a solution for the problem described previously, we will change the Int types for Enums.

image

Creator: @Alann27
Co-Owners: @jorgecuesta @bryanchriswhite

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

No branches or pull requests

1 participant