Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update tests
  • Loading branch information
Tobbe committed Jan 18, 2024
commit 41b491a81ae4e65cdff60fe8b19d4b3b7ace3882
1 change: 1 addition & 0 deletions __fixtures__/example-todo-main/web/src/graphql/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export type Scalars = {
Int: { input: number; output: number; }
Float: { input: number; output: number; }
BigInt: { input: any; output: any; }
Byte: { input: any; output: any; }
Date: { input: any; output: any; }
DateTime: { input: any; output: any; }
JSON: { input: any; output: any; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export type Scalars = {
Int: number;
Float: number;
BigInt: number;
Byte: Buffer;
Date: Date | string;
DateTime: Date | string;
JSON: Prisma.JsonValue;
Expand Down Expand Up @@ -160,6 +161,7 @@ export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs
export type ResolversTypes = {
BigInt: ResolverTypeWrapper<Scalars['BigInt']>;
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
Byte: ResolverTypeWrapper<Scalars['Byte']>;
Date: ResolverTypeWrapper<Scalars['Date']>;
DateTime: ResolverTypeWrapper<Scalars['DateTime']>;
Int: ResolverTypeWrapper<Scalars['Int']>;
Expand All @@ -177,6 +179,7 @@ export type ResolversTypes = {
export type ResolversParentTypes = {
BigInt: Scalars['BigInt'];
Boolean: Scalars['Boolean'];
Byte: Scalars['Byte'];
Date: Scalars['Date'];
DateTime: Scalars['DateTime'];
Int: Scalars['Int'];
Expand Down Expand Up @@ -204,6 +207,10 @@ export interface BigIntScalarConfig extends GraphQLScalarTypeConfig<ResolversTyp
name: 'BigInt';
}

export interface ByteScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes['Byte'], any> {
name: 'Byte';
}

export interface DateScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes['Date'], any> {
name: 'Date';
}
Expand Down Expand Up @@ -280,6 +287,7 @@ export type TodoRelationResolvers<ContextType = RedwoodGraphQLContext, ParentTyp

export type Resolvers<ContextType = RedwoodGraphQLContext> = {
BigInt: GraphQLScalarType;
Byte: GraphQLScalarType;
Date: GraphQLScalarType;
DateTime: GraphQLScalarType;
JSON: GraphQLScalarType;
Expand Down Expand Up @@ -313,6 +321,7 @@ export type Scalars = {
Int: number;
Float: number;
BigInt: number;
Byte: Buffer;
Date: string;
DateTime: string;
JSON: Prisma.JsonValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ directive @skipAuth on FIELD_DEFINITION

scalar BigInt

scalar Byte

scalar Date

scalar DateTime
Expand Down Expand Up @@ -76,6 +78,8 @@ directive @skipAuth on FIELD_DEFINITION

scalar BigInt

scalar Byte

scalar Date

scalar DateTime
Expand Down
4 changes: 0 additions & 4 deletions packages/internal/src/__tests__/graphqlSchema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ test('Returns error message when schema loading fails', async () => {

const [schemaLoadingError] = errors

console.log({
errors,
})

expect(schemaLoadingError.message).toEqual(
[
'Schema loading failed. Unknown type: "Shelf".',
Expand Down