AWS Amplify how to include validation across two model attributes? (e.g. startDate < endDate)2019 Community Moderator ElectionDifference between creating a method that accesses a lambda function in API Gateway and adding an API Gateway trigger to a lambda functionAuthorization Amplify APIAllow API users to run AWS Lambda using execution role from Cognito identity poolRunning Lambda functions for server-side validation with AppSync and DynamoDBAutomate Lambda resolver for AppSync using Amplify?AWS AppSync React: how to work with “complex” GraphQL schema?How do I set the “content-disposition” header of a file uploaded by AWS Amplifies GraphQL interface (S3Object)?can I add custom nested CloudFormation stack to AWS Amplify OR can I create a custom Lambda function/SQS with GraphQL/AppSync?How to invoke my AWS API Gateway REST API in my iOS / Swift projectGraphql queries generated by amplify work well, but throw errors due to auth rules. Why?
Having the player face themselves after the mid-game
PTIJ: Who was the sixth set of priestly clothes for?
Strange opamp's output impedance in spice
Professor forcing me to attend a conference, I can't afford even with 50% funding
Is it possible to clone a polymorphic object without manually adding overridden clone method into each derived class in C++?
Are all players supposed to be able to see each others' character sheets?
If nine coins are tossed, what is the probability that the number of heads is even?
If sound is a longitudinal wave, why can we hear it if our ears aren't aligned with the propagation direction?
Cycles on the torus
How do I increase the number of TTY consoles?
Is there a math expression equivalent to the conditional ternary operator?
How do you make a gun that shoots melee weapons and/or swords?
Trocar background-image com delay via jQuery
Graphic representation of a triangle using ArrayPlot
Are small insurances worth it?
Computation logic of Partway in TikZ
What is the purpose of a disclaimer like "this is not legal advice"?
What does *dead* mean in *What do you mean, dead?*?
Are E natural minor and B harmonic minor related?
Idiom for feeling after taking risk and someone else being rewarded
Either of .... (Plural/Singular)
Sampling from Gaussian mixture models, when are the sampled data independent?
How to copy the rest of lines of a file to another file
What do you call someone who likes to pick fights?
AWS Amplify how to include validation across two model attributes? (e.g. startDate
2019 Community Moderator ElectionDifference between creating a method that accesses a lambda function in API Gateway and adding an API Gateway trigger to a lambda functionAuthorization Amplify APIAllow API users to run AWS Lambda using execution role from Cognito identity poolRunning Lambda functions for server-side validation with AppSync and DynamoDBAutomate Lambda resolver for AppSync using Amplify?AWS AppSync React: how to work with “complex” GraphQL schema?How do I set the “content-disposition” header of a file uploaded by AWS Amplifies GraphQL interface (S3Object)?can I add custom nested CloudFormation stack to AWS Amplify OR can I create a custom Lambda function/SQS with GraphQL/AppSync?How to invoke my AWS API Gateway REST API in my iOS / Swift projectGraphql queries generated by amplify work well, but throw errors due to auth rules. Why?
Using AWS Amplify how does one update the schema.graphql model file so as to cause backend validation across multiple fields for the graphql API that is created.
For example with the following schema.graphql file for amplify, how could I update this (or with the additional of other files in the project), so as to include a server side validation check on the graphql API it created such that:
"startDate should be before endDate"
schema.graphql file:
type Event @model
id: ID!
name: String!
startDate: AWSDate!
endDate: AWSDate!
plan: Plan! @connection(name: "PlanEvents")
If this is not possible with amplify (note I'm using javascript amplify with react front end), advice re what approach to take to implement would be appreciated (e.g. what backend AWS components would I have to look into and learn, and how this would integrate in with the automated graphql api that amplify is effectively automatically building already for me)
aws-lambda aws-api-gateway aws-amplify aws-serverless
add a comment |
Using AWS Amplify how does one update the schema.graphql model file so as to cause backend validation across multiple fields for the graphql API that is created.
For example with the following schema.graphql file for amplify, how could I update this (or with the additional of other files in the project), so as to include a server side validation check on the graphql API it created such that:
"startDate should be before endDate"
schema.graphql file:
type Event @model
id: ID!
name: String!
startDate: AWSDate!
endDate: AWSDate!
plan: Plan! @connection(name: "PlanEvents")
If this is not possible with amplify (note I'm using javascript amplify with react front end), advice re what approach to take to implement would be appreciated (e.g. what backend AWS components would I have to look into and learn, and how this would integrate in with the automated graphql api that amplify is effectively automatically building already for me)
aws-lambda aws-api-gateway aws-amplify aws-serverless
add a comment |
Using AWS Amplify how does one update the schema.graphql model file so as to cause backend validation across multiple fields for the graphql API that is created.
For example with the following schema.graphql file for amplify, how could I update this (or with the additional of other files in the project), so as to include a server side validation check on the graphql API it created such that:
"startDate should be before endDate"
schema.graphql file:
type Event @model
id: ID!
name: String!
startDate: AWSDate!
endDate: AWSDate!
plan: Plan! @connection(name: "PlanEvents")
If this is not possible with amplify (note I'm using javascript amplify with react front end), advice re what approach to take to implement would be appreciated (e.g. what backend AWS components would I have to look into and learn, and how this would integrate in with the automated graphql api that amplify is effectively automatically building already for me)
aws-lambda aws-api-gateway aws-amplify aws-serverless
Using AWS Amplify how does one update the schema.graphql model file so as to cause backend validation across multiple fields for the graphql API that is created.
For example with the following schema.graphql file for amplify, how could I update this (or with the additional of other files in the project), so as to include a server side validation check on the graphql API it created such that:
"startDate should be before endDate"
schema.graphql file:
type Event @model
id: ID!
name: String!
startDate: AWSDate!
endDate: AWSDate!
plan: Plan! @connection(name: "PlanEvents")
If this is not possible with amplify (note I'm using javascript amplify with react front end), advice re what approach to take to implement would be appreciated (e.g. what backend AWS components would I have to look into and learn, and how this would integrate in with the automated graphql api that amplify is effectively automatically building already for me)
aws-lambda aws-api-gateway aws-amplify aws-serverless
aws-lambda aws-api-gateway aws-amplify aws-serverless
asked Mar 6 at 23:12
GregGreg
14k64206387
14k64206387
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55033662%2faws-amplify-how-to-include-validation-across-two-model-attributes-e-g-startda%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55033662%2faws-amplify-how-to-include-validation-across-two-model-attributes-e-g-startda%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown