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

Error when adding schema with non-null list type #1192

Closed
orpheuslummis opened this issue Mar 18, 2023 · 3 comments · Fixed by #1333
Closed

Error when adding schema with non-null list type #1192

orpheuslummis opened this issue Mar 18, 2023 · 3 comments · Fixed by #1333
Assignees
Labels
area/schema Related to the schema system documentation Improvements or additions to documentation
Milestone

Comments

@orpheuslummis
Copy link
Contributor

Schema:

type C {
    strings: [String]!
}

Error when adding schema:

    {
      "message": "no type found for given name. Type: NonNull",
      "extensions": {
        "status": 500,
        "httpError": "Internal Server Error"
      }
    }
@orpheuslummis orpheuslummis added the area/schema Related to the schema system label Mar 18, 2023
@orpheuslummis orpheuslummis added this to the DefraDB v0.5 milestone Mar 18, 2023
@orpheuslummis orpheuslummis added the bug Something isn't working label Mar 18, 2023
@AndrewSisley
Copy link
Contributor

AndrewSisley commented Mar 21, 2023

nitpick: This is a feature request and not a bug I think :) It also applies to any type outside of a list atm

@orpheuslummis orpheuslummis removed the bug Something isn't working label Mar 21, 2023
@jsimnz jsimnz added the documentation Improvements or additions to documentation label Mar 23, 2023
@jsimnz
Copy link
Member

jsimnz commented Mar 23, 2023

Documentation change

@jsimnz jsimnz closed this as completed Mar 23, 2023
@jsimnz jsimnz reopened this Mar 23, 2023
@AndrewSisley AndrewSisley self-assigned this Apr 11, 2023
@AndrewSisley
Copy link
Contributor

Feature issue created: #1331
Docs repo issue created: sourcenetwork/docs.source.network#86

This ticket will focus on improving the error message received when attempting to define a schema using a NonNull type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/schema Related to the schema system documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants