apollosolutions / apollo-jsei Goto Github PK
View Code? Open in Web Editor NEWGenerate Kotlin JS external interfaces from your GraphQL queries
License: MIT License
Generate Kotlin JS external interfaces from your GraphQL queries
License: MIT License
Right now it looks like the library is targeting Java 17. It would be nice to support older JDKs.
Given this example:
fragment JobFields on Job {
name
location
}
query people {
person {
job {
... JobFields
}
}
}
query classifieds {
classifiedAd {
job {
name
location
}
}
}
query companies {
company {
job {
... JobFields
}
}
It would be nice if the compiler knew to collapse the two sets of fields into one type so that the generated code ended up looking something like:
external interface Person {
val job: JobFields
}
external interface ClassifiedAd {
val job: JobFields
}
external interface Compan {
val job: JobFields
}
This would also allow us to generate a single type for fields that are selected with a common fragment.
We've found this code quite useful! It would be nice to have a non-snapshot release.
It looks like right now only GraphQL schema format is supported. It would be nice to support JSON schemas as well.
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.