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

getSchema - model attributes are not parsed #20

Closed
abrl91 opened this issue May 29, 2023 · 1 comment
Closed

getSchema - model attributes are not parsed #20

abrl91 opened this issue May 29, 2023 · 1 comment

Comments

@abrl91
Copy link

abrl91 commented May 29, 2023

Example model:

model course {
...model fields

 @@index([club_id], map: "club_id")
}

when I use the getSchema method:

const source = readFileSync("path/to/schema.prisma", { encoding: "utf8" });
const schema = getSchema(source);

I don't get the models attributes, like I get the attributes for fields

@abrl91
Copy link
Author

abrl91 commented May 29, 2023

I found the issue. I just didn't see it but it was there 😅

@abrl91 abrl91 closed this as not planned Won't fix, can't repro, duplicate, stale May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant