Skip to content

Instantly share code, notes, and snippets.

@begriffs
Last active January 29, 2016 18:23
Show Gist options
  • Select an option

  • Save begriffs/83058b59d90c1bb7e449 to your computer and use it in GitHub Desktop.

Select an option

Save begriffs/83058b59d90c1bb7e449 to your computer and use it in GitHub Desktop.
User with profile pic - GraphQL vs PostgREST

Selecting a user with their profile pic (from GraphQL introduction).

{
  user(id: 3500401) {
    id,
    name,
    isViewerFriend,
    profilePicture(size: 50)  {
      uri,
      width,
      height
    }
  }
}

would be specified by a url like this

/user?id=eq.3500401&profilePicture.size=eq.50&select=id,name,isViewerFriend,profilePicture{uri,width,height}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment