graphql-platform icon indicating copy to clipboard operation
graphql-platform copied to clipboard

StrawberryShake sending custom class within extensions

Open Shadow4walker opened this issue 3 years ago • 2 comments

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

Shadow4walker avatar Apr 30 '22 05:04 Shadow4walker

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 29 '22 05:06 stale[bot]

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

PascalSenn avatar Jul 05 '22 19:07 PascalSenn

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

Stephen-Meyerhofer avatar Aug 22 '23 16:08 Stephen-Meyerhofer