The data i am getting from request
Host: local.hm.com
Connection: close
Accept-Encoding: gzip, deflate
User-Agent: node-fetch/1.0 (+https://github.com/bitinn/node-fetch)
Content-Length: 406
Content-Type: application/json
Accept: application/json
{"query":"
mutation {
createCustomer(
input: {
firstname: "Dorothy"
lastname: "Langley"
email: "[email protected]"
password: "Pa$$w0rd!"
is_subscribed: false
}
) {
customer {
firstname
lastname
email
is_subscribed
}
}
}
"}
2021-02-05T10:14:41+00:00 INFO (6): actionPOST http://local.hm.com/graphql HTTP/1.1
Host: local.hm.com
Connection: close
Accept-Encoding: gzip, deflate
User-Agent: node-fetch/1.0 (+https://github.com/bitinn/node-fetch)
Content-Length: 406
Content-Type: application/json
Accept: application/json
The Data I need
{"query":"
mutation {
createCustomer(
input: {
firstname: "Dorothy"
lastname: "Langley"
email: "[email protected]"
password: "Pa$$w0rd!"
is_subscribed: false
}
) {
customer {
firstname
lastname
email
is_subscribed
}
}
}
"}
Code
$request = $this->request();
Any thoughts & answer on this questions
Appreciated.
question from:
https://stackoverflow.com/questions/66063063/how-to-get-some-data-from-request 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…