ChilliCream / graphql-platform

Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE.
https://chillicream.com
MIT License
5.25k stars 745 forks source link

StrawberryShake sending custom class within extensions #5017

Open Shadow4walker opened 2 years ago

Shadow4walker commented 2 years ago

Is your feature request related to a problem?

IDK!

The solution you'd like

sorry to open this issue but i couldn't find a soluation anywhere i'm still new to graphql stuff i need to send a json request to the appsync websocket server like below { "id": "ab591d90-a859-40e4-a003-5682e03fddaf", "payload": { "data": { "query": "Some query", "variables": { "requestorId": "ab591d90-a859-40e4-a003-5682e03fddaf" } }, "extensions": { "authorization": { "host": "HOST", "x-api-key": "x-api-key" } } }, "type": "start" } and what i've understand from StrawberryShake Doc/src that StrawberryShake will auto handle define needed json properties like (id,payload,data,variables,extensions(if available) and the type) and you only have to define your needed properties like query,extensions ..etc is that right?

but couldn't figuare away to define the authorization class within the extensions i know that i have to define it in the "schema.extensions.graphql" some how! but idk how to do it to look like the json above! can you please provide some example on how to do that! sorry for my weak english

Product

Strawberry Shake

PascalSenn commented 2 years ago

hmm do you want to send these extensions or receive them?

Stephen-Meyerhofer commented 1 year ago

I'm having a similar issue with sending these extensions.