Skip to content

How to create a "int -> entity" scalar #683

Closed
@jazithedev

Description

@jazithedev

I want to create an input scalar type in my schema. It should take an integer on input and in internal use it would return an entity with this integer as its ID. If particular entity will not exist, error should appear in GraphQL client.

The problem is, that scalar methods are static, and I cannot access entity repository or anything in dependency container. On webonyx those methods aren't static. What can be done here?

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