-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Require serialization/deserialization functions for custom scalars #94
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for grats ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
const abs = resolveRelativePath(module); | ||
const relative = stripExt( | ||
path.relative(path.dirname(this._destination), abs), | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Extract this so it can be shared
), | ||
name, | ||
); | ||
if (name === "serialize") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Comment explaining why we do this
@@ -769,7 +921,7 @@ class Codegen { | |||
} | |||
|
|||
function fieldDirective( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Rename?
@@ -18,10 +18,21 @@ type SomeType { | |||
hello: String | |||
} | |||
|
|||
scalar MyUrl | |||
scalar MyUrl @exported(tsModulePath: "grats/src/tests/fixtures/custom_scalars/DefineCustomScalar.ts", functionName: "MyUrl", argCount: 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Rename functionName
to something more generic.
TODO: Make argCount
optional?
----------------- | ||
{ | ||
"data": { | ||
"echo": null, // TODO: That's not write |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Look into these todos
@@ -196,7 +196,7 @@ const testDirs = [ | |||
|
|||
const schemaModule = await import(schemaPath); | |||
|
|||
const actualSchema = schemaModule.getSchema(); | |||
const actualSchema = schemaModule.getSchema(server.config); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
Fixes #66
TODO