Prisma1: Support multiple type definition files

Created on 11 Oct 2017  路  6Comments  路  Source: prisma/prisma1

What is the current behavior?

If I split my "types" and "enums" into two different files and add them to the graphcool.yml file and then I run graphcool deploy, I get an error saying ! Path must be a string. Received [ './enums.graphql', './types.graphql' ].

I am using Windows 10, Node.js v8.6.0 and graphcool@next exactly 0.7.0-beta.5 at this moment.

Please share the relevant part of your project (GraphQL schema, functions, permissions, ...) for easier reproduction

types:
  - ./types.graphql
  - ./enums.graphql

# More stuff...

What is the expected behavior?

It must deploy properly to the platform.

kinfeature arecli rf0-needs-spec

Most helpful comment

This feature has been added in version 0.10.1. Thanks for your feedback! 馃檶

https://github.com/graphcool/framework/releases/tag/0.10.1

All 6 comments

types is currently a field that accepts a string, not a list of strings. I don't see a problem with supporting multiple type definitions however, great feature request @jferrettiboke!

Good point! Might be a mismatch in the used json schema then. @timsuchanek?

@marktani It is also on docs.

Examples

Referring to a single type definition file

types: ./types.graphql

Referring to multiple type definition files

types:
  - ./types.graphql
  - ./customResolver.graphql

I understand this is coming in 1.0 (per #1328), but it's still documented as being possible right now.
screenshot 2017-11-30 17 36 16

screenshot 2017-11-30 17 37 37

Perhaps the documentation should be changed to reflect the current reality?

This feature has been added in version 0.10.1. Thanks for your feedback! 馃檶

https://github.com/graphcool/framework/releases/tag/0.10.1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hoodsy picture hoodsy  路  3Comments

notrab picture notrab  路  3Comments

marktani picture marktani  路  3Comments

dohomi picture dohomi  路  3Comments

marktani picture marktani  路  3Comments