Skip to content

Instantly share code, notes, and snippets.

@dsandip
Last active January 17, 2019 11:14
Show Gist options
  • Save dsandip/99ca91391cf95927197432b9194bca7e to your computer and use it in GitHub Desktop.
Save dsandip/99ca91391cf95927197432b9194bca7e to your computer and use it in GitHub Desktop.
Sample query for custom sql function support in GraphQL Engine
-- “search_articles” is a custom SQL function that takes a text input to search an ”article” table
query {
search_articles(
args: {search: "hasura"}
){
id
title
content
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment