Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
}
}
```