Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document Link Error #118

Closed
tylermcrobert opened this issue Jul 18, 2019 · 1 comment
Closed

Document Link Error #118

tylermcrobert opened this issue Jul 18, 2019 · 1 comment

Comments

@tylermcrobert
Copy link

Hi, I'm recieving an error on the following schema:

    "case_studies": {
      "type": "Link",
      "config": {
        "select": "document",
        "label": "Case Studies"
      }
    },

The error:

error UNHANDLED REJECTION


  Error: Type with name "File" does not exists

  - TypeStorage.js:44 SchemaComposer.get
    [select-www]/[graphql-compose]/lib/TypeStorage.js:44:13

  - TypeMapper.js:86 TypeMapper.get
    [select-www]/[graphql-compose]/lib/TypeMapper.js:86:44

  - TypeMapper.js:608 TypeMapper.typeFromAST

    [select-www]/[graphql-compose]/lib/TypeMapper.js:608:17

  - TypeMapper.js:105 TypeMapper.getWrapped
    [select-www]/[graphql-compose]/lib/TypeMapper.js:105:17

  - TypeMapper.js:272 TypeMapper.convertOutputFieldConfig
    [select-www]/[graphql-compose]/lib/TypeMapper.js:272:114

  - configAsThunk.js:19 resolveOutputConfigAsThunk
    [select-www]/[graphql-compose]/lib/utils/configAsThunk.js:19:41

  - ObjectTypeComposer.js:300 ObjectTypeComposer.getFieldConfig
    [select-www]/[graphql-compose]/lib/ObjectTypeComposer.js:300:58

  - toInputObjectType.js:44 fieldNames.forEach.fieldName
    [select-www]/[graphql-compose]/lib/utils/toInputObjectType.js:44:19

  - Array.forEach

  - toInputObjectType.js:38 toInputObjectType
    [select-www]/[graphql-compose]/lib/utils/toInputObjectType.js:38:14

  - toInputObjectType.js:78 convertInputObjectField
    [select-www]/[graphql-compose]/lib/utils/toInputObjectType.js:78:19

  - toInputObjectType.js:45 fieldNames.forEach.fieldName
    [select-www]/[graphql-compose]/lib/utils/toInputObjectType.js:45:23

  - Array.forEach

  - toInputObjectType.js:38 toInputObjectType
    [select-www]/[graphql-compose]/lib/utils/toInputObjectType.js:38:14

  - toInputObjectType.js:78 convertInputObjectField
    [select-www]/[graphql-compose]/lib/utils/toInputObjectType.js:78:19

  - toInputObjectType.js:45 fieldNames.forEach.fieldName
    [select-www]/[graphql-compose]/lib/utils/toInputObjectType.js

Forgive me if this issue has been addressed. I am using 3.0.0beta.4

@angeloashmore
Copy link
Member

Hi @tylermcrobert, thanks for trying out the beta! Unfortunately we don't have a solution ready for this issue yet.

This happens because your project does not have a File type registered.

There is an existing issue detailing the reasons and some possible solutions here:

Closing this issue, but we can continue tracking and discussing in #97.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants