Comments (8)
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.
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.
Thanks for your response!
from swift-graphql.
hmm, when I clone the repo I can build the tsn example… so it must be a problem in my code
from swift-graphql.
hmm, I'm wonder if its having a problem with the schema absinthe is generating
from swift-graphql.
do you see anything wrong with what was generated here?
from swift-graphql.
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.
@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)
- GraphQLWebSocket' does not conform to protocol 'WebSocketDelegate' HOT 1
- Remove dependency on starscream in favor of URLSession HOT 1
- Add support for AWS AppSync HOT 7
- Remove dependency on starscream in favor of URLSession HOT 13
- Does Query Builder support multi-operation queries? HOT 2
- Add suport for Linux and swift-server HOT 1
- Update package to remove CLI as dep for client HOT 7
- Massive amounts of warnings due to type parameters being shadowed (will be errors in Swift 6) HOT 2
- GraphQLSupport: Schema support HOT 1
- There are no changes listed for releases since 5.0.9 HOT 3
- GraphQL: Mock request support for testing HOT 2
- Project Roadmap HOT 3
- Caching HOT 2
- Race condition with `active` dictionary when using async/await (w/ proposed fix) HOT 2
- ErrorExchange doesnt seem to be called HOT 5
- using args causes error in response HOT 2
- Optional lists? optional().list.optional()
- Category Tree Structure upto 2 levels
- How to debug codegen errors?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swift-graphql.