Skip to content

Sync Resource #68

@sszenchenko

Description

@sszenchenko

Hi guys,

I'm trying to update the resource using the below code:

`const JsonapiClient = require("@holidayextras/jsonapi-client");
const client = new JsonapiClient("http://localhost:16006");

client.get('plans', 'test_plan', {}, function (err, plan) {
if (err) return console.error(err);

plan.set('name', 'Test plan 2');
plan.sync();
});`

But the update handler is not invoked on my server. Other handlers (create, delete, find, etc.) work as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions