Skip to content

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

@lleger

Description

@lleger

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions