daniele
11/06/2017, 1:54 PMagartha
11/06/2017, 1:55 PMsrc
folder is where all the schemas and code files for all of your functions (hooks, subscriptions and resolvers) go.daniele
11/06/2017, 1:57 PMagartha
11/06/2017, 1:58 PMgraphcool.yml
, your src folder would be empty, and you would just have graphcool.yml
, types.graphql
and, after deployment, .graphcoolrc
daniele
11/06/2017, 1:58 PMdaniele
11/06/2017, 1:59 PMagartha
11/06/2017, 1:59 PMgraphcool.yml
after initializing a new service, you'll see a single resolver function defined there, referencing that code file and the hello.graphql schema.agartha
11/06/2017, 2:00 PMdaniele
11/06/2017, 2:00 PMagartha
11/06/2017, 2:02 PMresolver function
is a query or mutation that you add to your graphql endpoint. Here's the blog post explaining it: https://blog.graph.cool/extend-your-graphcool-api-with-resolvers-ca0f0270bca7daniele
11/06/2017, 2:03 PMdaniele
11/06/2017, 2:03 PMdaniele
11/06/2017, 2:04 PMdaniele
11/06/2017, 2:04 PMtype Airline @model {
id: ID! @isUnique
name: String!
color: String!
}
daniele
11/06/2017, 2:05 PMsrc/airlines/airline.graphql
with all the mutations etc?agartha
11/06/2017, 2:25 PMtypes.graphql