Skip to content
This repository was archived by the owner on Oct 26, 2025. It is now read-only.
This repository was archived by the owner on Oct 26, 2025. It is now read-only.

In moving from inline args to interface args, optionality is omitted #26

@orta

Description

@orta

Before:

export interface TodayPageResolver {
  (args: {day?: string , applyAccessControls?: boolean , forUserID?: string , partnerID?: string , partnerSlug?: string }, obj: { root: Query, context: RedwoodGraphQLContext, info: GraphQLResolveInfo }): Promise<RTTodayPage| null>;

After

interface TodayPageResolverArgs {
  day: string | undefined;
  applyAccessControls: boolean | undefined;
  forUserID: string | undefined;
  partnerID: string | undefined;
  partnerSlug: string | undefined;
  anonPuzzlesOnly: boolean | undefined;
}
/*SDL: todayPage(day: String, applyAccessControls: Boolean, forUserID: String, partnerID: String, partnerSlug: String, anonPuzzlesOnly: Boolean): TodayPage*/
export interface TodayPageResolver {
   (args: TodayPageResolverArgs, obj: { root: Query, context: RedwoodGraphQLContext, info: GraphQLResolveInfo }): Promise<RTTodayPage| null>;

should be day?: string

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions