Closed dustinblanchard closed 6 years ago
V2.0
I need to make sure this resource does not already exist in the collection. If it does not already exist in the collection, I need a way to add it to the collection without saving it to the API (since it came from the server in the first place).
colleciton.replaceOrAdd(resource); // resource is Resource type
create the resource using the JSON from my webhook.
resource = service.new(); resource.fill(data);
I am trying to use this along with webhooks in my application. For instance, when I have a new notification, my Angular application receives the JSON of the new notification. I need to be able to do two things:
Is there a way to extend .new() to allow me to