Giter Site home page Giter Site logo

nicholasbellucci / sociableweaver Goto Github PK

View Code? Open in Web Editor NEW
74.0 74.0 5.0 224 KB

Build declarative GraphQL queries in Swift.

License: MIT License

Swift 100.00%
domain-specific-language function-builder graphql swift swift-package-manager xcode

sociableweaver's People

Contributors

evandcoleman avatar nicholasbellucci avatar quentinfasquel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sociableweaver's Issues

Not working as expected in Xcode 12 beta 6

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)

mutation with upload variable

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.

Build issues with Xcode 14

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 **

How to use this library

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

Pseudo graphql

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!

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.