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

https://github.com/shiftx/graphql-faunadb


https://github.com/shiftx/graphql-faunadb

fauna faunadb graphql

Last synced: 8 months ago
JSON representation

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