Created
October 15, 2019 18:09
-
-
Save chrisdhanaraj/0a1d02c2d6b4ba28c1275f639065df01 to your computer and use it in GitHub Desktop.
Query?
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
interface Query { | |
queryString: string, | |
variables: { | |
[key]: string; | |
} | |
} | |
function convertToQuery({ | |
query, | |
queries, | |
selectedItems | |
}) => { | |
... returns | |
` | |
searchSuggestions(filters: 'CONVERTED FROM SELECTED ITEMS', query: 'CONVERTED FROM SELECTED ITEMS', ...query.variables) { | |
DEFINED BY QUERY | |
} ` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment