Object
- Description
-
GraphQL objects represent a list of named fields, each of which yields a value of a specific type.
Note that object types cannot be used for input (instead, see âInputObjectâ below).
- Absinthe Macro
-
object
Examples
In an Absinthe schema:
â | @desc â"ââA person"â |
â | object â:personâ âdoâ |
â | field â:nameâ, non_null(â:stringâ) |
â | â# Other fieldsâ |
â | âendâ |
Get Craft GraphQL APIs in Elixir with Absinthe now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.