Comments (3)
Here are the details. This happens while running codegen. Attaching codegen config as well
{
"parentTypeName":"Query",
"fieldName":"__schema",
"variables":{
},
"selectionSetList":[
"__typename",
"queryType/name",
"mutationType/name",
"subscriptionType/name",
"types/FullType",
"directives/name",
"directives/description",
"directives/locations",
"directives/args/InputValue"
],
"selectionSetGraphQL":"query IntrospectionQuery {\n __schema {\n queryType {\n name\n }\n mutationType {\n name\n }\n subscriptionType {\n name\n }\n types {\n ...FullType\n }\n directives {\n name\n description\n locations\n args {\n ...InputValue\n }\n }\n }\n}\n\nfragment FullType on __Type {\n kind\n name\n description\n fields(includeDeprecated: true) {\n name\n description\n args {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n description\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n}\n\nfragment InputValue on __InputValue {\n name\n description\n type {\n ...TypeRef\n }\n defaultValue\n}\n\nfragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n}\n"
}{
"timestamp":"2023-05-20T07:13:23.608Z"
}
And the logs
[dev:public] ◭ 5/20/2023, 10:13:23 AM <<ERROR>> Error parsing 'action' from input event. If you are trying to query a custom resolver, make sure it is properly declared inside 'prismaAppSync.resolve({ event, resolvers: { /* HERE */ } })'.
[dev:public] {
[dev:public] error: "Error parsing 'action' from input event. If you are trying to query a custom resolver, make sure it is properly declared inside 'prismaAppSync.resolve({ event, resolvers: { /* HERE */ } })'.",
[dev:public] type: 'INTERNAL_SERVER_ERROR',
[dev:public] code: 500
[dev:public] }
codegen.ts
import { CodegenConfig } from '@graphql-codegen/cli'
const config: CodegenConfig = {
overwrite: true,
schema: {
'http://localhost:4000/graphql',
},
documents: ['./graphql/apiClient.graphql'], // random query
ignoreNoDocuments: false, // for better experience with the watcher
verbose: true,
debug: true,
config: {
sort: false,
skipTypename: true,
scalars: {
AWSDateTime: 'any',
AWSEmail: 'any',
AWSJSON: 'any',
AWSURL: 'any',
},
},
emitLegacyCommonJSImports: false,
generates: {
'./src/api/apiClient.ts': {
// preset: 'client',
plugins: [
'typescript',
'typescript-operations',
'typescript-graphql-request',
],
config: {
preResolveTypes: true,
onlyOperationTypes: true,
skipTypeNameForRoot: true,
skipTypename: true,
avoidOptionals: false,
autogenSWRKey: true,
ignoreEnumValuesFromSchema: false,
inlineFragmentTypes: 'combine',
allowEnumStringTypes: true,
enumsAsTypes: true,
pureMagicComment: true,
documentMode: 'graphQLTag',
},
},
},
}
export default config
It fails on the first call when it's trying to fetch the schema
from prisma-appsync.
I've tested a few things on my end, but couldn't find any introspection issue with the local dev server - would you have more details to share?
from prisma-appsync.
Will be released as part of 1.0.0-rc.7.
from prisma-appsync.
Related Issues (20)
- Issue: shield rule on model with WhereUniqueInput results in error HOT 8
- Issue: Shield ACL rules not compatible with count query and nested operations (breaking proposal) HOT 5
- Feature: new `unsecureGraphQLErrors` client option to enable unfiltered errors in GraphQL response HOT 3
- @auth type public access HOT 2
- Local server does not take into account the data from the authorization token (AMAZON_COGNITO_USER_POOLS auth mode) HOT 2
- Public facing vs Admin facing apis
- Feat: migrate local dev server to Amplify AppSync Simulator HOT 2
- Issue: Schema generation issue when using Prisma `@@id` attributes. HOT 2
- AppSync producing empty GraphQL blocks in schema HOT 1
- Issue: Schema version mismatch when deploying HOT 4
- init -y flag not supported in pnpm HOT 2
- Issue: pnpm init empty string argument HOT 2
- Feature/Issue: AWSDate Type Serialization Issue with Override Decorator HOT 3
- Issue: tweaking graphql schema not working HOT 3
- Question: How to use multiple Lambda data sources? HOT 9
- Issue: Nested CreateWithout[Relation]Input requires mandatory ID fields despite create or connectOrCreate usage HOT 7
- Feature Request: Support for more granular @gql directives (for nested models)
- Delete operation: Argument `where` of type [Model]WhereUniqueInput needs at least one of `id` arguments. HOT 1
- Help: Large schema in AppSync is slow HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prisma-appsync.