通过电子邮件在prisma GraphQL中过滤

时间:2020-05-27 15:24:36

标签: graphql prisma graphql-playground

我正在尝试通过电子邮件过滤用户,我正在使用pyramida并使用“游乐场”进行测试,有什么办法可以通过电子邮件过滤用户的数据?

我的模式:

interface Model {
  id: ID! @id
  createdAt: DateTime! @createdAt
  updatedAt: DateTime! @updatedAt
}

type User implements Model {
  id: ID! @id
  createdAt: DateTime! @createdAt
  updatedAt: DateTime! @updatedAt
  username: String
  name: String!
  surname: String!
  email: String!
  token_usuario: String! @unique
}

我的尝试:

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:1)

使用prisma 2.0,数据库客户端公开了如下内容:

#settings.py
MEDIA_URL = '/images/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'static/images')

我希望查询也会跟进。因此,请尝试传递library(ggplot2) library(scales) df <- data.frame( metric = c('metric1', 'metric2', 'metric3'), z_score = c(2, -1.5, 2.8) ) ggplot(df, aes(x = metric, y = z_score)) + geom_col() + coord_flip() + scale_y_continuous(trans = modulus_trans(2), limits = c(-4, 4), breaks = c(-3:3)) 字段进行过滤。需要确保看到完整的架构才能肯定地说。