[x] implement a new panel & form for Agent creation, wire into navigation as appropriate
[x] wire up GraphQL mutations to create Agents
[x] wire up a "fetch all" query to load all (positioned) Agents in to the map; remove dummy data
I think we can omit Agent editing for now? Though if the form control stuff you're working on already includes the ability to load up the form with existing values then you may as well implement updateAgent while you're here.
The best tips I can give you RE authoring GraphQL API calls are:
Use a GraphiQL query authoring interface that comes with documentation and autocomplete (see below).
Unfortunately not all of the hREA test suite uses GraphQL so YMMV in locating particular sample code. An easy way to experiment with query syntax without having to do a lot of setup is to use the mock API provided with the specification. If you need to do "real" testing of your queries where a backend system is persisting and providing data then simply install the latest hREA release into your Holochain launcher and open up the bundled UI.
I think we can omit Agent editing for now? Though if the form control stuff you're working on already includes the ability to load up the form with existing values then you may as well implement
updateAgent
while you're here.The best tips I can give you RE authoring GraphQL API calls are:
Unfortunately not all of the hREA test suite uses GraphQL so YMMV in locating particular sample code. An easy way to experiment with query syntax without having to do a lot of setup is to use the mock API provided with the specification. If you need to do "real" testing of your queries where a backend system is persisting and providing data then simply install the latest hREA release into your Holochain launcher and open up the bundled UI.