https://github.com/shiftx/graphql-faunadb
https://github.com/shiftx/graphql-faunadb
fauna faunadb graphql
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shiftx/graphql-faunadb
- Owner: shiftx
- License: mit
- Created: 2018-10-22T22:04:24.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-18T19:23:03.000Z (almost 7 years ago)
- Last Synced: 2024-10-05T18:47:21.335Z (over 1 year ago)
- Topics: fauna, faunadb, graphql
- Language: JavaScript
- Size: 87.9 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GraphQL-FaunaDB
A collection of types and helpers to pair GraphQL with FaunaDB
## Types
### GraphQLFaunaTimestampType
### GraphQLFaunaPageType
### GraphQLFaunaCursorType
### GraphQLFaunaClassType
####Usage
```js
// const PostId = new GraphQLFaunaIdType({
// name: 'PostId',
// fauna: {
// class: 'posts',
// }
// })
const Posts = new GraphQLFaunaClassType({
name: 'Post',
fields: () => {
// id: PostId,
title: GraphQLString,
},
fauna: {
class: 'posts',
},
})
```