winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
5.03k stars 198 forks source link

`cloud.GraphQL` resource #2155

Closed Chriscbr closed 11 months ago

Chriscbr commented 1 year ago

Feature Spec

A resource for creating serverless GraphQL endpoints.

Use Cases

GraphQL APIs let clients request the exact data they want and nothing more, in a standard way.

Implementation Notes

It's also possible we could addthis to the existing Api resource -- we just need to think about how the APIs should look, and a rough idea of how this could be implemented across multiple public cloud providers (we want to avoid designing towards the specifics of AWS for example).

Component

SDK

Community Notes

github-actions[bot] commented 1 year ago

Hi,

This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!

olivernybroe commented 1 year ago

I think a new resource under cloud would be cleanest I think, e.g.

bring cloud;

let gql = new cloud.Gql('schema.gql');

gql.mutation("createPost", inflight (request: cloud.GqlRequest): cloud.GqlResponse => {
    return cloud.GqlResponse {
        title: "My title"
    };
});
olivernybroe commented 1 year ago

This is actually a duplicate of #1341.

this one is placed as out of scope whereas the other one is in p2

staycoolcall911 commented 1 year ago

Thanks @olivernybroe - kept this one

staycoolcall911 commented 11 months ago

Duplicates #4769