aws-samples / aws-serverless-airline-booking

Airline Booking is a sample web application that provides Flight Search, Flight Payment, Flight Booking and Loyalty points including end-to-end testing, GraphQL and CI/CD. This web application was the theme of Build on Serverless Season 2 on AWS Twitch running from April 24th until end of August in 2019.
MIT No Attribution
2.2k stars 1.3k forks source link

Not getting any flight #78

Closed MThakkar121 closed 4 years ago

MThakkar121 commented 5 years ago

not getting any flights arrival departure details, after setting up the web application and running it ! it runs successfully but after the logging in didn't getting any flights..

heitorlessa commented 5 years ago

Have you followed the steps to manually add a flight? If so, can you try adding a flight for November as I think there is a bug in the resolver?

It’d be great to hear what steps you’ve taken too

On Fri, 25 Oct 2019 at 19:11, Mayur Thakkar notifications@github.com wrote:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aws-samples/aws-serverless-airline-booking/issues/78?email_source=notifications&email_token=AAZPQBAHM2R7WBAC3WVCU5TQQMZD5A5CNFSM4JFG23XKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HUOM4OQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZPQBCF7CT2LWVVYGOWJJDQQMZD5ANCNFSM4JFG23XA .

MThakkar121 commented 5 years ago

I've followed all the steps which are explained in to the readme.md file !!

Wait, please explain me, I mean help me with that! how can I implement by following manual steps ?

heitorlessa commented 5 years ago

Hi Mayur,

Please follow these manual steps to add your flights into the system and then you should be able to find them when searching in the web app - https://github.com/aws-samples/aws-serverless-airline-booking#adding-your-first-flight

Notice the mutation flight1 that adds a flight for London Gatwick/Madrid on Dec 2nd - https://github.com/aws-samples/aws-serverless-airline-booking/blob/develop/sample-queries-mutations.gql#L4

If the instructions succeeded and you've got your first flight added in the DB, the following query should work for you - Similarly to the instructions, you can run them within AppSync Console:

query {
  listFlights(limit:2){
    items {
      id,
      departureDate,
      departureAirportCode,
      departureAirportName,
      departureCity,
      departureLocale,
      arrivalDate,
      arrivalAirportCode,
      arrivalAirportName,
      arrivalCity,
      arrivalLocale,
      ticketPrice,
      ticketCurrency,
      flightNumber,
      seatAllocation,
      seatCapacity
    }
  }
}

Let me know the result of the query above once you have a chance.

Hope that helps and thanks for raising the issue

MThakkar121 commented 5 years ago

Thank you for helping me out of these problem I'll tell you about the results ASAP !

On Mon, Nov 11, 2019, 02:37 Heitor Lessa notifications@github.com wrote:

Hi Mayur,

Please follow these manual steps to add your flights into the system and then you should be able to find them when searching in the web app - https://github.com/aws-samples/aws-serverless-airline-booking#adding-your-first-flight

Notice the mutation flight1 that adds a flight for London Gatwick/Madrid on Dec 2nd - https://github.com/aws-samples/aws-serverless-airline-booking/blob/develop/sample-queries-mutations.gql#L4

If the instructions succeeded and you've got your first flight added in the DB, the following query should work for you - Similarly to the instructions, you can run them within AppSync Console:

query { listFlights(limit:2){ items { id, departureDate, departureAirportCode, departureAirportName, departureCity, departureLocale, arrivalDate, arrivalAirportCode, arrivalAirportName, arrivalCity, arrivalLocale, ticketPrice, ticketCurrency, flightNumber, seatAllocation, seatCapacity } } }

Let me know the result of the query above once you have a chance.

Hope that helps and thanks for raising the issue

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aws-samples/aws-serverless-airline-booking/issues/78?email_source=notifications&email_token=AIZ7BKP2V4AFEB3DEILTAGDQTBZ2FA5CNFSM4JFG23XKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDVGZQA#issuecomment-552234176, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIZ7BKPKXF5M5PMJ3JR2PKDQTBZ2FANCNFSM4JFG23XA .

heitorlessa commented 4 years ago

Resolving this as of now, but please reopen once you've got the results to share :)