-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2209c9d
commit 9fc77f5
Showing
3 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
apps/playnite-web/src/server/graphql/modules/base/resolvers/Date.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { GraphQLScalarType } from 'graphql' | ||
export const Date = new GraphQLScalarType({ | ||
name: 'Date', | ||
description: 'Date description', | ||
serialize: (value) => { | ||
/* Implement logic to turn the returned value from resolvers to a value that can be sent to clients */ | ||
}, | ||
parseValue: (value) => { | ||
/* Implement logic to parse input that was sent to the server as variables */ | ||
}, | ||
parseLiteral: (ast) => { | ||
/* Implement logic to parse input that was sent to the server as literal values (string, number, or boolean) */ | ||
}, | ||
}) |
14 changes: 14 additions & 0 deletions
14
apps/playnite-web/src/server/graphql/modules/base/resolvers/DateTime.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { GraphQLScalarType } from 'graphql' | ||
export const DateTime = new GraphQLScalarType({ | ||
name: 'DateTime', | ||
description: 'DateTime description', | ||
serialize: (value) => { | ||
/* Implement logic to turn the returned value from resolvers to a value that can be sent to clients */ | ||
}, | ||
parseValue: (value) => { | ||
/* Implement logic to parse input that was sent to the server as variables */ | ||
}, | ||
parseLiteral: (ast) => { | ||
/* Implement logic to parse input that was sent to the server as literal values (string, number, or boolean) */ | ||
}, | ||
}) |