Can't use AWS Scalars
See original GitHub issuewhen using AWS Scalars like AWSURL
the test doesn’t pass
Issue Analytics
- State:
- Created 5 years ago
- Comments:17 (8 by maintainers)
Top Results From Across the Web
Scalar types in AWS AppSync
AWS AppSync does not support custom scalars. This means that you cannot use AWS as a prefix for custom object types. The following...
Read more >Custom scalar types · Issue #26 · aws/aws-appsync-community
AppSync comes with the default GraphQL scalar types and with some handy additional AWS types. It would be nice, however, to be able...
Read more >AWS Appsync Scalar types and Apollo Federation - Help
Hi Guys, I'm currently facing a problem that I have no idea on how this could be solved with the federation gateway.
Read more >Define ID Scalar Type in AWS AppSync - Stack Overflow
The ID scalar type is a unique identifier that can be either String or Int. You can control these in your resolver mapping...
Read more >API (GraphQL) - Data modeling - AWS Amplify Docs
Add authorization rules to your GraphQL schema to control access to your data. ... Note: After a primary key is configured and deployed,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure @estrada9166, I’ll dive into the code this days. If anything comes up I’ll directly reach you!
That awesome!! We need to do multiple things!
How to do it?
We should validate if the argument is
scalar
, so, we have the parsed schema (schema
) and each argument has atype
property (will be the nested type), so we can search for thattype
on the schema, if there is one check the type if it’s'ScalarTypeDefinition'
so if it’s it means thatisScalar = true
validateInputArg()
as last argument… we should remove thattrue
Now on
validateInputArg
we have to do multiple things:filteredArg
can beundefined
but sometimes it should not be that becauseschemaVar
can be an object but it doesn’t mean is a nested object that we can access likeschemaVar[arg.name]
, so we should validate iffilteredArg
is undefined, lets check if it’s an object that containskind
and usegetArgValue(schemaVar)
to get the argument value… when is this happening? This is the caseisScalar
from here because, now if it’sundefined
is because that argument is missingisScalar
before validating thetypeof
of the argument, so if it’s ascalar
we should returnI tried to explain with the more details possible, but if can help you with more details or something else, it’ll be a pleasure for me 😃!!