Questions tagged [ent]
18 questions
1
vote
1 answer
ent.go saying sql: databse is closed on any query
db/db.go
func DbClient(cfg *config.Config, logger log.Logger) *ent.Client {
// "host= port= user= dbname= password="
psqlInfo := fmt.Sprintf("host=%s port=%s user=%s dbname=%s password=%s",
…

Md Ariful islam Protik
- 39
- 1
- 4
1
vote
0 answers
gqlgen Resolver func missing OrderBy args in generated code
I am new to go. I am building a project using gqlgen and ent. I have schema.graphql defined as below
type IP implements Node {
id: ID!
created_at: Time!
updated_at: Time!
response_code: String!
ip_address: String!
queries(after: Cursor,…

Sujith Shajee
- 175
- 5
- 18
0
votes
1 answer
How to disable ent privacy settings for tests?
I setup a graphql application, which uses ent as ORM and firebase.
With ent, I added privacy rules to authenticate which users can access certain graphql methods.
Now I want to write tests, but I can't reach certain graphql methods because of the…

Ramon Medeiros
- 2,272
- 2
- 24
- 41