A tool built to achieve... wrapper over the old "Achievo" legacy system, transforming the old php+html return into a modern one-page app in React with GraphQL for the API.
The "enviar" (send) button should be replaced with an "atualizar" (update) button if the data is already on server and is possible to edit it.
To do so, for now, it is need to do a mutation that will do like:
but, to avoid inserting before deleting on async calls, maybe should create a new mutation editTimeEntry(TimeEntry) that would do that in one call. This should be implemented on server/schema/resolver.js
The "enviar" (send) button should be replaced with an "atualizar" (update) button if the data is already on server and is possible to edit it. To do so, for now, it is need to do a mutation that will do like:
but, to avoid inserting before deleting on async calls, maybe should create a new mutation
editTimeEntry(TimeEntry)
that would do that in one call. This should be implemented onserver/schema/resolver.js