Code Monkey home page Code Monkey logo

Comments (8)

atomkirk avatar atomkirk commented on June 12, 2024 1

yeah, its a problem with my generated API.swift file. I replaced my API.swift file with the one from thesocialnetwork, changed Meeting to Message, and the project compiles just fine

from swift-graphql.

atomkirk avatar atomkirk commented on June 12, 2024 1

ok figured it out. had to do this:

    static var upcoming = Selection.RootQueryType<[Meeting]> {
        try $0.meetings(filters: ~nil, selection: Meeting.selection.list)
    }

Thats pretty confusing

from swift-graphql.

atomkirk avatar atomkirk commented on June 12, 2024 1

Thanks for your response!

from swift-graphql.

atomkirk avatar atomkirk commented on June 12, 2024

hmm, when I clone the repo I can build the tsn example… so it must be a problem in my code

from swift-graphql.

atomkirk avatar atomkirk commented on June 12, 2024

hmm, I'm wonder if its having a problem with the schema absinthe is generating

from swift-graphql.

atomkirk avatar atomkirk commented on June 12, 2024

API.swift.zip

do you see anything wrong with what was generated here?

from swift-graphql.

atomkirk avatar atomkirk commented on June 12, 2024

sorry, my query was wrong.I've updated to this and getting same error:

    static var upcoming = Selection.Query<[Meeting]> {
        try $0.meetings(filters: ~nil, selection: Meeting.selection.list)
    }

from swift-graphql.

shaps80 avatar shaps80 commented on June 12, 2024

@atomkirk looks like you solved it before I could get back to this haha. Glad to hear it.

I agree with the confusion though. There are some details that are out-of-date in that project I think, but also it's not the most intuitive API for that since the learning curve is a little steep.

Good news is? I'm working on this, on a v6 that is a huge departure from the current approach but removes this confusion considerably.

Keep an eye on the Roadmap ticket or Discussions if you're keen to stay up-to-date.

Appreciate your support and thanks for reaching out, glad you managed to sort it yourself 👍

from swift-graphql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.