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?

Why is participating in the European Parliamentary elections used as a threat?

Isn't the word "experience" wrongly used in this context?

Should a narrator ever describe things based on a characters view instead of fact?

Turning a hard to access nut?

How do you justify more code being written by following clean code practices?

How can a new country break out from a developed country without war?

10 year ban after applying for a UK student visa

Friend wants my recommendation but I don't want to

Would storms on an ocean world harm the marine life?

How much propellant is used up until liftoff?

What is the tangent at a sharp point on a curve?

What (if any) is the reason to buy in small local stores?

What is the reasoning behind standardization (dividing by standard deviation)?

Why do I have a large white artefact on the rendered image?

Is "inadequate referencing" a euphemism for plagiarism?

Extraneous elements in "Europe countries" list

If I cast the Enlarge/Reduce spell on an arrow, what weapon could it count as?

Why doesn't the chatan sign the ketubah?

Have any astronauts/cosmonauts died in space?

Writing in a Christian voice

Is there any common country to visit for uk and schengen visa?

CLI: Get information Ubuntu releases

What are rules for concealing thieves tools (or items in general)?

TDE Master Key Rotation



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?










0















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)










share|improve this question


























    0















    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)










    share|improve this question
























      0












      0








      0








      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)










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 6 at 23:12









      GregGreg

      14k64206387




      14k64206387






















          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
          );



          );













          draft saved

          draft discarded


















          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















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          AWS Lex not identifying response if by a variable The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceEnforcing custom enumeration in AWS LEX for slot valuesHow to give response based on user response in Amazon Lex?Intercepting AWS Lambda Response to a AWS Lex QueryLex chat bot error: Reached second execution of fulfillment lambda on the same utteranceamazon lex showing invalid responseLambda response send back to Lex slot?Response card in Amazon lexAmazon Lex - Lambda response return HTML to botHow can I solve 424 (Failed Dependency) (python) obtained from Amazon lex?

          Алба-Юлія

          Захаров Федір Захарович