graphql-faunadb
v0.1.0-rc.9
Published
A collection of types and functions to pair GraphQL with FaunaDB
Downloads
1
Readme
GraphQL-FaunaDB
A collection of types and helpers to pair GraphQL with FaunaDB
Types
GraphQLFaunaTimestampType
GraphQLFaunaPageType
GraphQLFaunaCursorType
GraphQLFaunaClassType
####Usage
// const PostId = new GraphQLFaunaIdType({
// name: 'PostId',
// fauna: {
// class: 'posts',
// }
// })
const Posts = new GraphQLFaunaClassType({
name: 'Post',
fields: () => {
// id: PostId,
title: GraphQLString,
},
fauna: {
class: 'posts',
},
})