Skip to content

Instantly share code, notes, and snippets.

@BartoszBilejczyk
Created August 4, 2020 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BartoszBilejczyk/3a527fbc1faefa9c81620b8a93a2ab38 to your computer and use it in GitHub Desktop.
Save BartoszBilejczyk/3a527fbc1faefa9c81620b8a93a2ab38 to your computer and use it in GitHub Desktop.
import gql from 'graphql-tag';
export const GET_RESULTS = gql`
query GetResults($term: String, $category: String) {
search (
term: $term,
categories: $category,
limit: 50
latitude: 52.237022,
longitude: 21.050440,
radius: 15000
) @connection(key: "search") {
total
business {
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment