decapi icon indicating copy to clipboard operation
decapi copied to clipboard

Create GraphQL API by decorating TypeScript classes

Results 17 decapi issues
Sort by recently updated
recently updated
newest added

just to see how fast/slow compiling of schemas is and how the changes being done affect the performance

enhancement
hacktoberfest

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.

enhancement
hacktoberfest

Arg and InputField decorator are not nullable by default. We should make Fields to be non nullable by default too.

enhancement
hacktoberfest

@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...

enhancement
hacktoberfest

usage would be ```ts @MutationField({ castTo: GroupModelAsAdmin }) async group( @Arg({ type: PositiveInt }) id: number, @Context ctx: UserSessionContext ) { return ctx.organisation .$relatedQuery('groups') .findById(id) } ```

enhancement
hacktoberfest

currently we're adding all, even unused ones

enhancement
hacktoberfest

can be tested easily with ```ts @ArrayField({ name: 'aaa' }) async getRelatedCampaigns(@Context ctx: UserSessionContext) { } @ArrayField({ name: 'aaa' }) async getRelatedDashboards(@Context ctx: UserSessionContext) { } } ``` currently we...

enhancement
hacktoberfest

In your documentation of Arg [https://decapi.netlify.com/docs-docs-explore-arg](https://decapi.netlify.com/docs-docs-explore-arg) it shows having a `defaultValue` such as `@Arg({ nullable: true, defaultValue: 2 }) exponent: number`. Yet the API and the TS Types don't include...

docs

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.

enhancement
hacktoberfest