Skip to content
This repository was archived by the owner on Jun 14, 2026. It is now read-only.
This repository was archived by the owner on Jun 14, 2026. It is now read-only.

Is there any way to implement resolvers in the jsonSchema? #85

@jusegoram

Description

@jusegoram

`
dbObj = {
name: 'john'
address: {
prop w spaces 1: '0',
prop w spaces 2: '1'
}
}

jsonSchema = {
name: {type: string },
addres: { type: object, properties {
propWSpaces1: {type: string, resolve: (parent) => parent['prop w spaces 1']}
propWSpaces2: {type: string, resolve: (parent) => parent['prop w spaces 2']}
}
}
}
`

This is what I am trying to accomplish, however the resolve is either not recognized when the GraphQl schema is generated or Im missing something important on implementing resolvers correctly while using objection-graphql.

any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions