Skip to main content
@tags: return, output, response, results, projection, formatting

TL;DR

  • Return a list of element: RETURN users
  • Return multiple lists of elements: RETURN users, posts
  • Project specific fields: RETURN users::{ name, age }
  • Return IDs only: RETURN users::ID
  • Exclude specific fields: RETURN users::!{ email }
  • Return scalar values: RETURN count
  • Return literal values: RETURN "success"
  • No payload: RETURN NONE
Note: When using the Python SDK, the return values are wrapped in an array for multiple query calls, so you will need to access the first element of the array to get the result of the first call.

Return elements

  • Schema:
  • Query:
  • Output:

Return multiple elements

  • Schema:
  • Query:
  • Output:

Include fields

  • Schema:
  • Query:
  • Output:

Return IDs only

  • Schema:
  • Query:
  • Output:

Exclude fields

  • Schema:
  • Query:
  • Output:

Return nested elements

  • Schema:
  • Query:
  • Output:

Return scalar values

  • Schema:
  • Query:
  • Output:

Return literal values

  • Schema:
  • Query:
  • Output:

Return no payload

  • Schema:
  • Query:
  • Output: