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

User may define system fields on object but cant query them #2113

Open
AndrewSisley opened this issue Dec 7, 2023 · 0 comments
Open

User may define system fields on object but cant query them #2113

AndrewSisley opened this issue Dec 7, 2023 · 0 comments
Labels
area/schema Related to the schema system code quality Related to improving code quality

Comments

@AndrewSisley
Copy link
Contributor

AndrewSisley commented Dec 7, 2023

For example they can define:

type Author {
	name: String
	books: [Book]
	_count: String
}

but they cannot query _count: String as it is an aggregate system-field. The definition of the collection should fail with a nice error explaining this. _count won't be the only system field where this is an issue, please fix all of them.

TestView_OneToManyWithCount_Errors documents how this can cause problems later in the user-flow, the test should be altered or removed when fixing this issue.

@AndrewSisley AndrewSisley added area/schema Related to the schema system code quality Related to improving code quality labels Dec 7, 2023
@AndrewSisley AndrewSisley changed the title User may define 'reserved' fields on object but cant query them User may define system fields on object but cant query them Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/schema Related to the schema system code quality Related to improving code quality
Projects
None yet
Development

No branches or pull requests

1 participant