Skip to content

Adapter improvements #226

@gr0uch

Description

@gr0uch

Some incremental improvements to the Adapter:

  • Logical operators in find (Adapter find options additions  #186).
  • Add support for singular IDs, just a small opt-in improvement to aid usability. no longer needed due to new instance methods.
  • Add support for update & delete queries.

Regarding the last point, it could be like:

adapter.update(type, [ {
  // If ID is missing, expect options.
  options: {
    // Re-use `find` method options.
  },
  replace: { ... },
  push: { ... },
  pull: { ... },
  operate: { ... }
} ])

Delete API:

adapter.delete(type, [ {
  // Re-use `find` method options.
} ])

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions