0.3.0 • Published 5 years ago

now-graphql v0.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

now-graphql

a now builder for graphql services

usage

create an index.js file

module.exports = {
  typeDefs: `
    type Query {
      hello: String
    }
  `,
  resolvers: {
    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": "now-graphql" }
  ],
  "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.3.0

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.20

5 years ago

0.1.19

5 years ago

0.1.18

5 years ago

0.1.17

5 years ago

0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago