You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is for the agent popup from the map, which includes the offers.
I'm trying to work with what is in hREA using the graphiql in the installation, and spec out a query for agents that also gets their offers. So far no real luck, and I'm not sure the best path to follow in terms of odd queries and/or more work in hREA. (Note we'll need the same kind of thing for an agent's chosen facet values.)
First try:
query GetAgents {
agents {
edges {
node {
id
name
proposals {
edges {
node {
id
unitBased
hasBeginning
hasEnd
publishes {
reciprocal
publishes {
id
provider {
id
name
}
receiver {
id
name
}
availableQuantity {
hasNumericalValue
hasUnit {
label
}
}
resourceQuantity {
hasNumericalValue
hasUnit {
label
}
}
resourceConformsTo {
name
}
}
}
}
}
}
}
}
}
}
This doesn't work because agent.proposals is not implemented.
Next try, because agent.intentsAsProvider does work. But I can't figure out any way to get back up to the Proposal through the ProposedIntent from the Intent, so I can get back down to the reciprocal Intent.
The one below works. But there is no filter to get proposals just for one agent afaict? So filtering or shuffling them onto the right agents could possibly be done somewhere - the UI? But it's a bit of work. I don't know, maybe it is the same amount of work to do it in hREA to make agent.proposals work, without sql? Above my pay grade.
query GetProposals {
proposals {
edges {
node {
id
unitBased
hasBeginning
hasEnd
publishes {
reciprocal
publishes {
id
provider {
id
name
}
receiver {
id
name
}
availableQuantity {
hasNumericalValue
hasUnit {
label
}
}
resourceQuantity {
hasNumericalValue
hasUnit {
label
}
}
resourceConformsTo {
name
}
}
}
}
}
}
}
The text was updated successfully, but these errors were encountered:
This is for the agent popup from the map, which includes the offers.
I'm trying to work with what is in hREA using the graphiql in the installation, and spec out a query for agents that also gets their offers. So far no real luck, and I'm not sure the best path to follow in terms of odd queries and/or more work in hREA. (Note we'll need the same kind of thing for an agent's chosen facet values.)
First try:
This doesn't work because agent.proposals is not implemented.
Next try, because agent.intentsAsProvider does work. But I can't figure out any way to get back up to the Proposal through the ProposedIntent from the Intent, so I can get back down to the reciprocal Intent.
The one below works. But there is no filter to get proposals just for one agent afaict? So filtering or shuffling them onto the right agents could possibly be done somewhere - the UI? But it's a bit of work. I don't know, maybe it is the same amount of work to do it in hREA to make agent.proposals work, without sql? Above my pay grade.
The text was updated successfully, but these errors were encountered: