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
Hello), I need help implementing a subscribe request to get data in a field so that I can edit it later. Briefly and in detail, I described the issue on StackOverflow.
I want the category fields to be filled in the form with values from the category that I received from the server.
I'm doing similarly from a course that uses RestAPI, but I'm using Nestjs - Apollo - Angular and I can't seem to achieve this with this stack.
This is implemented with the .subscribe method but it's not in apollo-angular
Here's how it's done in the course.
The teacher gets the category from the server and uses its name to set as the value of the field that is in the given control.
Values from the category.id are pulled from the server into the fields.
2 blocks of questions:
If I use codegen types (Apollo-angular), what do I need to do to implement this? Do I need to create subscriptions separately, or is there some method to make this easier?
It’s still difficult for me to study the apollo-angular documentation, could you describe in detail how to implement getting data from the server to edit it inside the fields.
What basic principles am I not understanding when asking this question? What would you recommend to study? What questions would you like me to ask?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello), I need help implementing a subscribe request to get data in a field so that I can edit it later. Briefly and in detail, I described the issue on StackOverflow.
I want the category fields to be filled in the form with values from the category that I received from the server.
I'm doing similarly from a course that uses RestAPI, but I'm using Nestjs - Apollo - Angular and I can't seem to achieve this with this stack.
This is implemented with the .subscribe method but it's not in apollo-angular
Here's how it's done in the course.
How does this work on Apollo-Angular?
Teacher Clicks on the "edit category" button...
![Edit category by id](https://camo.githubusercontent.com/2bfd6417d175e70161e22844b1113d047d57f06f55da9da0a3aadacfe8f8d33a/68747470733a2f2f692e737461636b2e696d6775722e636f6d2f70624450692e706e67)
Values from the category.id are pulled from the server into the fields.
![get data for edit](https://camo.githubusercontent.com/f4f9a55af56e77cbdedf294ffa1a5ef6a4f15af662f6ad8f5f8e9ed08114cd64/68747470733a2f2f692e737461636b2e696d6775722e636f6d2f654f6f47532e706e67)
2 blocks of questions:
It’s still difficult for me to study the apollo-angular documentation, could you describe in detail how to implement getting data from the server to edit it inside the fields.
Beta Was this translation helpful? Give feedback.
All reactions