Hello,
I’m using Lucee 6.2.1.122 and want to call/use a GraphQL mutation like this one:
mutation DoSomething {
doSomething(
input: {
id: 123
}
) {
SERVERSTATE
ErrText
}
}
I also need to submit a bearer token. How can this be done with Lucee?
Thx for your help!
Rüdiger
GraphQL is not natively supported.
You can find some information to integrate it from existing java libraries, from here:
dawesi
3
bearer token is usually sent in a header
<cfhttpparam type="header" name='authorization' value='Bearer 27jwjewjeis838uwe3743ace3'>
@dawesi: Thank you, the rest was a simple matter of doing a CFHTTP POST.
1 Like