nicholasbellucci / sociableweaver Goto Github PK
View Code? Open in Web Editor NEWBuild declarative GraphQL queries in Swift.
License: MIT License
Build declarative GraphQL queries in Swift.
License: MIT License
Hi!
We're using SociableWeaver in our project and it has been great, however when building in Xcode 12 our project fails and when running the SociableWeaver tests, all but three tests fails.
Version: v0.1.7
Xcode: 12.0 beta 6 (12A8189n)
I wonder how to use Sociable Weaver to describe such information, I don't think this is currently possible but I would like to make sure, for now the only case I can't use your library is for my mutation that requires uploading a file.
mutation MyOperation($preview: Upload, $file: Upload) {
...
}
Thanks.
Attempts to generate an xcframework via Carthage on Xcode 14 fail.
System information:
Monterey 12.6 on Apple M1 Pro
Xcode 14.0.1
Carthage 0.38.0
SociableWeaver v 0.1.12
Relevant information from the Carthage logs
Users/username/Git/App/Carthage/Checkouts/SociableWeaver/Sources/SociableWeaver/FunctionBuilders/OperationBuilder.swift:19:44: error: cannot find type 'ForEachWeavable' in scope
} else if let forEach = $0 as? ForEachWeavable {
^~~~~~~~~~~~~~~
/Users/username/Git/App/Carthage/Checkouts/SociableWeaver/Sources/SociableWeaver/FunctionBuilders/OperationBuilder.swift:7:18: error: type of expression is ambiguous without more context
children.forEach {
~~~~~~~~~^~~~~~~~~
** ARCHIVE FAILED **
I learned how to install it, and how to map my types to Graphql queries or mutations.
But how those queries can be then used in my app? I have not seen any queries being generated in the filesystem in order to Graphql (Apollo) library can pick them up during build.
Can you guide me please? If there is nothing yet of this kind, how can one manage it?
Thanks
Hi, I'm given a subscription graphql url like this by the backend:
curl --insecure -X POST https://someserver.io/app/v1/maintenance/subscribe
returns:
{
"data":{
"maintenance":{
"message":"Maintenance message here",
"isMaintenance":false
}
}
}
After which, I understand that it's a pseudo graphql implemented on their side.
Is it possible to do this using SociableWeaver?
I mean, just by giving the url without knowing the actual graphql endpoint and the query. I have not implemented any networking at all :)
Thank you in advanced!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.