Skip to content

Make decorator-usage as type a compile time error, instead of runtime #350

@akomm

Description

@akomm
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no
Version/Branch dev-master

First of all: nice feature. I used "decorators" often and now they are an actual feature and I can prevent them from going into the schema! 👍

Is it actually possible to throw error at compile time, when I have:

SomeType: type: 'object' config: fields: someField: { type: 'SomeDecoratorType' }

While SomeDecoratorType is an object with config.decorator: true.

Currently an error is thrown when query is being executed.

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