Hi
I ve a connection like this
connection node_type: :message do
field :participants, :string do
resolve(fn parent, args, info ->
# I want to access conversation_id from parent query arg
{:ok, "hello"}
end)
end
edge do
end
end
object :queries do
connection field(:conversation_thread, node_type: :message, paginate: :forward) do
arg(:conversation_id, non_null(:id), description: "Conversation ID to paginate messages")
middleware(TokenAuth)
resolve(&Conversation.paginate_messages/3)
end
end
I want to access conversation_id
inside the participant field resolver, how can I do this?