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

pal generate creates a lot more files #119

Closed
ralvs opened this issue Jul 9, 2020 · 5 comments
Closed

pal generate creates a lot more files #119

ralvs opened this issue Jul 9, 2020 · 5 comments

Comments

@ralvs
Copy link

ralvs commented Jul 9, 2020

Hey guys.
I'm using version 1.0.3 and today the command pal g starts creating lots of files like follow
...MaxAggregateOutputType
...MinAggregateOutputType
...SumAggregateOutputType
...AvgAggregateOutputType

How can I stop that?

My pal.js config is

module.exports = {
  backend: {
    generator: 'sdl',
    output: 'graphql/generated',
  },
}
@AhmedElywa
Copy link
Collaborator

Yes it’s because new features in new version 2.2.0 I will upgrade now to feat new version of Prisma

@ralvs
Copy link
Author

ralvs commented Jul 9, 2020

Ok, @AhmedElywa , understood.
So I think the problem is, I did not enable the experimental flag for aggregations

generator client {
  provider = "prisma-client-js"
  // experimentalFeatures = ["aggregateApi"]
}

And when Paljs creates all these types, I get a lot of erros like unknown type

Unknown type "ExpenseMaxAggregateOutputTypeWhereInput". Did you mean "ExpenseMaxAggregateOutputType", "ExpenseMinAggregateOutputType", "ExpenseAvgAggregateOutputType", "ExpenseSumAggregateOutputType", or "NfeMaxAggregateOutputType"?

@AhmedElywa
Copy link
Collaborator

@ralvs thanks for your report please use the last version of @paljs/cli v1.0.6 will fix this issue

@ralvs
Copy link
Author

ralvs commented Jul 9, 2020

Great @AhmedElywa !
I have fixed that downgrading to prisma v2.1.3
Will try update prisma and paljs now.
Thanks

@ralvs ralvs closed this as completed Jul 9, 2020
@AhmedElywa
Copy link
Collaborator

@ralvs v1.1.1 support adding aggregate

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

2 participants