Jiri Spac
Jiri Spac
just to see how fast/slow compiling of schemas is and how the changes being done affect the performance
or maybe remove entirely? I would love if we can get the decapi to work in the browser-then we can just link to a showcase in a decapi browser playground.
Arg and InputField decorator are not nullable by default. We should make Fields to be non nullable by default too.
@typescript-eslint/no-inferrable-types omits type for booleans and other primitives if they have default values. Ideally we could infer the type in decapi too so that the default rules in `@typescript-eslint` work...
usage would be ```ts @MutationField({ castTo: GroupModelAsAdmin }) async group( @Arg({ type: PositiveInt }) id: number, @Context ctx: UserSessionContext ) { return ctx.organisation .$relatedQuery('groups') .findById(id) } ```
currently we're adding all, even unused ones
can be tested easily with ```ts @ArrayField({ name: 'aaa' }) async getRelatedCampaigns(@Context ctx: UserSessionContext) { } @ArrayField({ name: 'aaa' }) async getRelatedDashboards(@Context ctx: UserSessionContext) { } } ``` currently we...
currently when an enum is registered, we use the object keys for the enum values. These can be different from the values and it can get quite confusing.