Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deno-libs/graphql_tag
🦕 Create a GraphQL schema AST from template literal. Deno port of `graphql-tag` library
https://github.com/deno-libs/graphql_tag
deno graphql graphql-tools
Last synced: 21 days ago
JSON representation
🦕 Create a GraphQL schema AST from template literal. Deno port of `graphql-tag` library
- Host: GitHub
- URL: https://github.com/deno-libs/graphql_tag
- Owner: deno-libs
- License: mit
- Created: 2021-03-13T20:28:04.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-11-09T12:57:39.000Z (about 1 year ago)
- Last Synced: 2024-08-04T00:06:25.341Z (3 months ago)
- Topics: deno, graphql, graphql-tools
- Language: TypeScript
- Homepage: https://deno.land/x/graphql_tag
- Size: 44.9 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# graphql-tag
[![GitHub release (latest by date)][releases]][releases-page]
[![GitHub Workflow Status][gh-actions-img]][github-actions] [![Codecov][codecov-badge]][codecov] [![][docs-badge]][docs]> 🦕 Deno port of [graphql-tag](https://github.com/apollographql/graphql-tag) library.
Create a GraphQL schema AST from template literal.
## Example
```ts
import { buildASTSchema, graphql } from 'https://esm.sh/[email protected]'
import { gql } from 'https://deno.land/x/graphql_tag/mod.ts'const typeDefs = gql`
type Query {
hello: String
}
`const query = `{ hello }`
const resolvers = { hello: () => 'world' }
const schema = buildASTSchema(typeDefs)
console.log(await graphql({ schema, source: query, rootValue: resolvers }))
```[releases]: https://img.shields.io/github/v/release/deno-libs/graphql-tag?style=flat-square
[docs-badge]: https://img.shields.io/github/v/release/deno-libs/graphql-tag?color=yellow&label=Documentation&logo=deno&style=flat-square
[docs]: https://doc.deno.land/https/deno.land/x/graphql_tag/mod.ts
[releases-page]: https://github.com/deno-libs/graphql-tag/releases
[gh-actions-img]: https://img.shields.io/github/actions/workflow/status/deno-libs/graphql-tag/main.yml?branch=master&style=flat-square
[codecov]: https://codecov.io/gh/deno-libs/graphql_tag
[github-actions]: https://github.com/deno-libs/graphql-tag/actions
[codecov-badge]: https://img.shields.io/codecov/c/gh/deno-libs/graphql_tag?style=flat-square