Do you no longer need to pass `@model` in `datamod...
# orm-help
d
Do you no longer need to pass
@model
in
datamodel.graphql
? I’m looking at some code I wrote last summer and comparing to up-to-date documentation and I see no mention of
@model
now. 😕
h
Yes, you no longer need to pass that
👍 1
d
Thanks. It’s a little confusing coming back after 6 months. It seems like a lot has changed.
🤗 1
What about
.graphqlconfig.yml
? I had that file in an old project and I don’t see it mentioned anywhere nowadays.
h
We don't really use graphql cli now. You can use the prisma cli to get the schema now
d
I had the following:
Copy code
projects:
  app:
    schemPath: src/schema.graphql
    extensions:
      endpoints:
        default: <http://localhost:4000>
  prisma:
    schemaPath: src/generated/prisma.graphql
    extensions:
      prisma: prisma/prisma.yml
      codegen:
        - generator: prisma-binding
          language: typescript
          output:
            binding: src/generated/prisma.ts
I guess this is what gave me the different “app” and “prisma” APIs in the playground, right?
h
you can use the prisma playground command to do that now without using this file
d
Oh, cool. Thanks again. I think I’m just gonna rewrite the little app I had from scratch and learn what’s what. I appreciate the help. 👍
🙂 1
h
Ask anytime, if you need more specific help you can DM me anytime
🙂 1
d
Thanks!
🙌 1