0.0.22 • Published 6 years ago

graphql-now-builder v0.0.22

Weekly downloads
75
License
-
Repository
-
Last release
6 years ago

graphql-now-builder

a now builder for graphql services

usage

create an index.js file

module.exports = {
  typeDefs: `
    type Query {
      hello: String
    }
  `,
  resolvers: {
    Query: {
      hello: () => `hello world`
    }
  }
  // any other apollo-server config
}

where typeDefs is a string that decscribes your schema, then create a now.json file

{
  "version": 2,
  "builds": [
    { "src": "index.js", "use": "graphql-now-builder" }
  ],
  "routes": [
    { "src": "/graphql", "dest": "index.js" }
  ]
}

then run now to deploy with now.

Since you can use any apollo-server config, feel free to use schema or anything else you might do with that.

The default path is /graphql, but you can change that by adding path to your server, and updating your route in now.json to point to it.

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago