GraphQL: what am I not understanding?

Discussion in 'Programming' started by sarahk, Sep 6, 2021.

  1. #1
    I've been reading up on GraphQL and how it makes querying easier than REST and reduces development time. I haven't yet found a way to set up GraphQL that isn't onerous and a huge amount of work.

    Found one system that came highly recommended but you still needed to write your database calls. Seriously?

    Is there a GraphQL system that you can point at your database, tell it how the foreign keys map and be up and running?

    All the articles have REST calls returning the contents of a single table - no matter how many rows. Is there any reason they're not returning the same sort of datasets as a GraphQL request?
     
    sarahk, Sep 6, 2021 IP
  2. Spoiltdiva

    Spoiltdiva Acclaimed Member

    Messages:
    7,841
    Likes Received:
    2,973
    Best Answers:
    53
    Trophy Points:
    520
    #2
    Datacamp.com offers free tutorials. Why not check them out?
     
    Spoiltdiva, Sep 6, 2021 IP
  3. sarahk

    sarahk iTamer Staff

    Messages:
    28,807
    Likes Received:
    4,534
    Best Answers:
    123
    Trophy Points:
    665
    #3
    I will. Haven't been there before. Thanks
     
    sarahk, Sep 6, 2021 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    28,807
    Likes Received:
    4,534
    Best Answers:
    123
    Trophy Points:
    665
    #4
    Oops they don't even have a client side course

    9928C435-2BCD-4763-9389-0875F0D7DBE5.jpeg
     
    sarahk, Sep 6, 2021 IP
  5. Spoiltdiva

    Spoiltdiva Acclaimed Member

    Messages:
    7,841
    Likes Received:
    2,973
    Best Answers:
    53
    Trophy Points:
    520
    #5
    Did you click on to where it says "Free Account"? I think it will send you to the free tutorial, then you just learn all you need to know.
     
    Spoiltdiva, Sep 6, 2021 IP
  6. sarahk

    sarahk iTamer Staff

    Messages:
    28,807
    Likes Received:
    4,534
    Best Answers:
    123
    Trophy Points:
    665
    #6
    I had a good look around but couldn't find anything about setting up or using graphql. Their content does look impressive for other topics.

    At the moment I'm thinking this looks right for me: https://api-platform.com/ I'm not sure why it took so long to find but proves that having the right domain doesn't really help SEO!
     
    sarahk, Sep 8, 2021 IP
  7. sarahk

    sarahk iTamer Staff

    Messages:
    28,807
    Likes Received:
    4,534
    Best Answers:
    123
    Trophy Points:
    665
    #7
    But maybe leaf. I've got some other stuff to finish and then I'll have a go at setting them up
     
    sarahk, Sep 8, 2021 IP