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

Erroneous introspection schema resulting from one-to-many schema #1463

Closed
orpheuslummis opened this issue May 6, 2023 · 0 comments · Fixed by #1633
Closed

Erroneous introspection schema resulting from one-to-many schema #1463

orpheuslummis opened this issue May 6, 2023 · 0 comments · Fixed by #1633
Labels
area/query Related to the query component bug Something isn't working

Comments

@orpheuslummis
Copy link
Contributor

We obtain a erroneous introspection schema when using a one-to-relation relationship.

Using the booksmany.gql example:

type Book {
    name: String
    rating: Float
    author: Author
}

type Author {
    name: String
    age: Int
    verified: Boolean
    published: [Book]
}

We obtain in GraphiQL:

Error: Introspection result missing inputFields: 
{"description":"","enumValues":null,"fields":null,"inputFields":null,"interfaces":null,"kind":"INPUT_OBJECT","name":"AuthorOrderArg","possibleTypes":null}
@orpheuslummis orpheuslummis added area/query Related to the query component bug Something isn't working labels May 6, 2023
@nasdf nasdf closed this as completed in 808d6be Jul 13, 2023
shahzadlone pushed a commit to shahzadlone/defradb that referenced this issue Feb 23, 2024
)

## Relevant issue(s)

Resolves sourcenetwork#1632 
Resolves sourcenetwork#1502 
Resolves sourcenetwork#1463

## Description

This PR adds an introspection test that identifies an issue with
`orderArg`.

## Tasks

- [x] I made sure the code is well commented, particularly
hard-to-understand areas.
- [x] I made sure the repository-held documentation is changed
accordingly.
- [x] I made sure the pull request title adheres to the conventional
commit style (the subset used in the project can be found in
[tools/configs/chglog/config.yml](tools/configs/chglog/config.yml)).
- [x] I made sure to discuss its limitations such as threats to
validity, vulnerability to mistake and misuse, robustness to
invalidation of assumptions, resource requirements, ...

## How has this been tested?

`make test`

Specify the platform(s) on which this was tested:
- MacOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/query Related to the query component bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant