Message of the day:
Discuss React integration with SilverStripe 🤓
Discuss React integration with SilverStripe
The main issue seems to be that
null. Is graphql not executed as the current user?
i think you should expect graphql requests to be stateless. the module will authenticate using your logged in session, but if you were using something like basic auth instead it uses your verified Member as context but doesn't actually log that member in. session data shouldn't persist between the app layer and graphql responses, or between graphql requests
BUT if I do a var_dump during a graphql request, I get this:
If I do a var_dump of the current
Session when logged into the admin, I get the following:
Does GraphQL somehow access different session data than a conventional SS request?
@Martin-cloudcreations has joined the channel
React form fields are usually designed for the cms only. It might work, but you’d need to BYO React app and probably use injector (decoupled POC for frontend available on request) in order to make it work
heheh, I was watching that injector
Hey @robbieaverill would love to see your POC 🙂