deep-foundation / deep-foundation/deeplinks
DeepClient Select Error: field "_eq" not found in type: 'links_bool_exp'
- Dominant language
- TypeScript
- Stars
- 13
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
# Error
```
Uncaught Error: DeepClient Select Error: field "_eq" not found in type: 'links_bool_exp'
at DeepClient.eval (client.js:394:1)
at Generator.throw ()
at rejected (client.js:5:42)
```
# Select request
```ts
await deep.select({
_or: [
{
up: {
tree_id: await deep.id('@deep-foundation/core', 'containTree'),
parent_id: deep.linkId,
link: { type_id: await deep.id('@deep-foundation/chatgpt-azure-discord-bot', 'BotToken') }
}
},
{
type_id: await deep.id('@deep-foundation/chatgpt-azure-discord-bot', 'BotToken'),
in: {
type_id: await deep.id('@deep-foundation/chatgpt-azure-discord-bot', 'UsesBotToken'),
from: deep.linkId
},
}
]
})
// or
await deep.select({
_or: [
{
up: {
tree_id: { _eq: await deep.id('@deep-foundation/core', 'containTree') },
parent: { id: { _eq: deep.linkId } },
link: { type_id: { _eq: await deep.id('@deep-foundation/chatgpt-azure-discord-bot', 'BotToken') } }
}
},
{
type_id: await deep.id('@deep-foundation/chatgpt-azure-discord-bot', 'BotToken'),
in: {
type_id: await deep.id('@deep-foundation/chatgpt-azure-discord-bot', 'UsesBotToken'),
from: deep.linkId
},
}
]
})
```
# Gql code from network tab
```gql
{"operationName":"SELECT","variables":{"where0":{"in":{"type_id":{"_eq":3},"string":{"value":{"_eq":"BotToken"}},"from":{"type_id":{"_eq":2},"string":{"value":{"_eq":"@deep-foundation/chatgpt-azure-discord-bot"}}}}}},"query":"query SELECT($distinct_on0: [links_select_column!], $limit0: Int, $offset0: Int, $order_by0: [links_order_by!], $where0: links_bool_exp!) {\n q0: links(\n distinct_on: $distinct_on0\n limit: $limit0\n offset: $offset0\n order_by: $order_by0\n where: $where0\n ) {\n id\n type_id\n from_id\n to_id\n value\n __typename\n }\n}\n"}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the DeepClient select request and inspect client.js around the reported error at line 394, comparing the two TypeScript predicates with the generated GraphQL request from the network tab. Done means the shown nested select produces a valid links_bool_exp query without placing _eq at an invalid level.
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