graphql-faunadb

0.1.0-rc.9 • Public • Published

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',
  },
})

Readme

Keywords

Package Sidebar

Install

npm i graphql-faunadb

Weekly Downloads

1

Version

0.1.0-rc.9

License

MIT

Unpacked Size

29.7 kB

Total Files

19

Last publish

Collaborators

  • jarrymi
  • eigilsagafos