Skip to content

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions