Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outdated documentation on configuring select and transform #18

Open
hc-12 opened this issue Jan 17, 2025 · 0 comments
Open

Outdated documentation on configuring select and transform #18

hc-12 opened this issue Jan 17, 2025 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@hc-12
Copy link

hc-12 commented Jan 17, 2025

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.

@hc-12 hc-12 added the documentation Improvements or additions to documentation label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant