You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can see the documentation allows all 3 types of IDs.
currently it uses uuid as default and there is no override option.
Describe the solution you'd like
we can provide a global config or translation behaviour option to provide an option to select an enum from one of uuid / ksuid and ulid?
Describe alternatives you've considered
I was able to override it for my specific use case.
constgraphApi=newAmplifyGraphqlApi(stack,"GraphqlApi",{definition: AmplifyGraphqlDefinition.fromFiles("stacks/amplify-schema.graphql"),apiName: "GraphqlApi",translationBehavior: {},transformerPlugins: [],functionSlots: ["createQuestionTags","createQuestion","createTag","createUser","createAnswer",].map((fieldName)=>({fieldName: fieldName,function: {requestMappingTemplate:
MappingTemplate.fromString(`## [Start] Request mapping template.## get the "fieldName" from ctx.stash and add it as a prefix to id.. make sure to replace 'create' word with ''$util.qr($ctx.stash.defaultValues.put("id", "$util.autoUlid()"))## [End] Initialization default values. **{}`),},slotIndex: 0,slotName: "init",typeName: "Mutation",})),authorizationModes: {apiKeyConfig: {expires: Duration.days(365),description: "API Key for GraphQL API - "+stack.stage,},defaultAuthorizationMode: "OPENID_CONNECT",oidcConfig: {oidcIssuerUrl: process.env.CLERK_ISSUER_BASE_URL!,oidcProviderName: "Clerk",tokenExpiryFromAuth: Duration.millis(0),tokenExpiryFromIssue: Duration.millis(0),},},});
it does require a management overhead. to keep that array of models updated.
Additional context
No response
Is this something that you'd be interested in working on?
👋 I may be able to implement this feature request
Would this feature include a breaking change?
⚠️ This feature might incur a breaking change
The text was updated successfully, but these errors were encountered:
Describe the feature you'd like to request
I can see the documentation allows all 3 types of IDs.
currently it uses uuid as default and there is no override option.
Describe the solution you'd like
we can provide a global config or translation behaviour option to provide an option to select an enum from one of uuid / ksuid and ulid?
Describe alternatives you've considered
I was able to override it for my specific use case.
it does require a management overhead. to keep that array of models updated.
Additional context
No response
Is this something that you'd be interested in working on?
Would this feature include a breaking change?
The text was updated successfully, but these errors were encountered: