graphql-hive / graphql-hive/SOFA

Url for call functions inside of a type seems not work

Open
#207 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.1k
Forks
91
Avg merge
5h 10m
Merged PRs (30d)
1

Description

When I have an structure like:
```gql
type Query {
account(id: ID!): Account
}

type Account {
id: ID!
action(id: ID!): String
}
```
The route built is:
`/account/:id/`

When I call this endpoint:
`http://localhost:9229/rest/account/1/action/5`

I receive as a result:
`TypeError: ID cannot represent value: undefined`

Contributor guide

No contributing guide indexed for this repository

Research direction

No files or tests are named. Start by reproducing the provided nested GraphQL schema and REST request, then trace how the /account/:id/action/:id route maps arguments into the nested call. Done means the endpoint no longer produces the reported undefined ID error.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.