Mornin. Latest api pathom docs are working again https://github.com/cljdoc/cljdoc/issues/400. There's also a hidden rebuild button on cljdoc that Martin pointed out
Is there someone who had a problem with datahike not writing to its file when transacting inside a parallel parser?
nice! 😄
Hi, newbie question: Imagine you have a mutation in which some complex context data structure must be checked first, is it an idiomatic approach to use the existing resolvers (e.g. via the parser) to query for the needed context using an EQL query? (hope this makes sense)
yes, that's totally possible, I remember writing a transform
fn in the past that did just that
trying to find it here
couldn't find, but in a basic sense, you can just call the parser from inside the mutation (use the one from env
, there is a :parser
key there)
hello, you mean like, you have an input, then you use it compute more data, to then run the mutations, is like this?
Yes. My idea was that I could perhaps leverage all the resolver logic that is already implemented to produce contextual data (needed in the mutation) in function of the mutation params and a graph query.
then run some inspections on that data map to decide e.g. whether the mutation is allowed or not