did my question make sense? or its' incorrect?
# prisma-whats-new
d
did my question make sense? or its' incorrect?
a
The
src
folder is where all the schemas and code files for all of your functions (hooks, subscriptions and resolvers) go.
d
so what about types.graphql? is not there where the schema is stored?
a
It is. If you don't specify any functions in
graphcool.yml
, your src folder would be empty, and you would just have
graphcool.yml
,
types.graphql
and, after deployment,
.graphcoolrc
d
and hello.js?
sorry I'm slightly confused
a
If you look at the default contents of your
graphcool.yml
after initializing a new service, you'll see a single resolver function defined there, referencing that code file and the hello.graphql schema.
Feel free to remove it, it's just there as an example resolver function, following the ancient 'Hello world' principle 😄
d
the problem is that i' quite newbie about that ... so I don't know what mean resolver
a
A
resolver 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-ca0f0270bca7
d
oh thanks for the link
just last question
let's say that I checkout the project and I want to add a new type called airlines
Copy code
type Airline @model {
  id: ID! @isUnique
  name: String!
  color: String!
}
the idea is to put that in a new folder
src/airlines/airline.graphql
with all the mutations etc?
a
No, all model types just go directly into
types.graphql