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

Support missing or empty projection clause for commands #158

Closed
amorton opened this issue Feb 20, 2023 · 0 comments · Fixed by #286
Closed

Support missing or empty projection clause for commands #158

amorton opened this issue Feb 20, 2023 · 0 comments · Fixed by #286
Assignees

Comments

@amorton
Copy link
Contributor

amorton commented Feb 20, 2023

All commands that support a projection clause must support the following:

  • projection field not present in the command JSON object
  • projection field present, but an empty JSON object.

If the projection field is present, but is not a JSON object (e.g. {"projection" : "yes please :)"}) the service should return an error.

See this usecase form the client stargate/stargate-mongoose#18 (reply in thread)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment