0.9.6 • Published 2 months ago

gei-crud v0.9.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

GraphQL Editor Integration - CRUD

This integration allows basic CRUD operations with mongodb as a database

How to use in GraphQL Editor

  1. Select Type and field in stucco config
  2. Select From integration
  3. Select gei-crud/Query.objects for objects or gei-crud/Mutation.create for Creation

How to use in code

$ npm i gei-users

Add this to your stucco.json file

{
  "resolvers": {
    "<Type>.<fieldName>": {
      "resolve": {
        "name": "node_modules/gei-crud/lib/Query/objects"
      }
    },
    "<Type>.<fieldName>": {
      "resolve": {
        "name": "node_modules/gei-crud/lib/Mutation/create"
      }
    }
  }
}

where Type and fieldName are defined for your schema, for example:

{
  "resolvers": {
    "Query.posts": {
      "data": {
        "model": "Post"
      },
      "resolve": {
        "name": "node_modules/gei-crud/lib/Query/objects"
      }
    },
    "Mutation.createPost": {
      "data": {
        "model": "Post"
      },
      "resolve": {
        "name": "node_modules/gei-crud/lib/Mutation/create"
      }
    }
  }
}

They need to implement the SDL type parameters.

0.9.6

2 months ago

0.9.4

2 months ago

0.9.5

2 months ago

0.9.2

2 months ago

0.8.9

7 months ago

0.8.8

7 months ago

0.9.0

6 months ago

0.9.1

6 months ago

0.8.7

8 months ago

0.7.9

9 months ago

0.8.5

9 months ago

0.7.6

9 months ago

0.8.4

9 months ago

0.7.5

9 months ago

0.7.8

9 months ago

0.8.6

9 months ago

0.7.7

9 months ago

0.8.1

9 months ago

0.8.0

9 months ago

0.8.3

9 months ago

0.8.2

9 months ago

0.6.6

10 months ago

0.7.2

9 months ago

0.7.1

10 months ago

0.7.4

9 months ago

0.7.3

9 months ago

0.7.0

10 months ago

0.0.3

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.2

2 years ago

0.0.1

2 years ago