Skip to content

Outdated documentation on configuring select and transform #18

@hc-12

Description

@hc-12

Improve documentation

Link

https://snaplet-snapshot.netlify.app/snapshot/core-concepts/capture#select-data

https://snaplet-snapshot.netlify.app/snapshot/core-concepts/capture#transform-data

Describe the problem

It seems that installing snaplet and importing defineConfig might no longer be feasible.

import { defineConfig } from "snaplet";

export default defineConfig({
  transform: {
    public: {
      User: () => {
        return {
          email: 'my-new-email@example.org',
        };
      },
    },
  },
});

Is it still possible to select and transform through other methods?

Transformation via npx @snaplet/snapshot snapshot capture -t auto will transform wholesale

Describe the improvement

Update the documentation to inform users on how to select and transform data using the configuration. Alternatively, clarify if this functionality is no longer available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions