Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gqlgo/querystring
`querystring` finds a GraphQL query in your files.
https://github.com/gqlgo/querystring
Last synced: 9 days ago
JSON representation
`querystring` finds a GraphQL query in your files.
- Host: GitHub
- URL: https://github.com/gqlgo/querystring
- Owner: gqlgo
- Created: 2022-09-02T16:27:01.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-16T08:59:25.000Z (about 2 years ago)
- Last Synced: 2024-08-02T06:13:46.914Z (3 months ago)
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# querystring
`querystring` finds a GraphQL query in your files.
```
go install github.com/gqlgo/querystring@latest
```## Sample usage
```
$ cat testdata/test3.tsx
const Test3Query = gql(/* GraphQL */ `
query Query {
field
}
`);const Test3Mutation = gql(/* GraphQL */ `
mutation Mutation {
mutation(arg: "value") {
field
}
}
`);const Test3Text = `Hello`
$ querystring testdata/test3.tsx
query Query {
field
}
mutation Mutation {
mutation(arg: "value") {
field
}
}
```