Last active
January 17, 2019 11:14
-
-
Save dsandip/99ca91391cf95927197432b9194bca7e to your computer and use it in GitHub Desktop.
Sample query for custom sql function support in GraphQL Engine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- “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