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

Rendering response with only meta (no data or errors) #223

Open
lleger opened this issue Feb 9, 2017 · 1 comment
Open

Rendering response with only meta (no data or errors) #223

lleger opened this issue Feb 9, 2017 · 1 comment

Comments

@lleger
Copy link

lleger commented Feb 9, 2017

From the spec:

A document MUST contain at least one of the following top-level members:

  • data: the document’s “primary data”
  • errors: an array of error objects
  • meta: a meta object that contains non-standard meta-information.

It's theoretically compliant to render a response that doesn't have either a data or errors block and just a meta block. Is it possible to do this? I tried passing both nil and an empty map to the formatter in place of data with no luck with no luck.

@alanpeabody
Copy link
Contributor

@lleger no, not currently, we could add support for it though.

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

No branches or pull requests

3 participants