使用 GraphJin 的步骤

使用 GraphJin 的步骤 安装 GraphJin: go get github.com/dosco/graphjin 配置 GraphJin: 创建一个 config.yaml 文件,配置数据库连接等信息。 config.yaml # config.yaml app_name: "test graphql" host_port: 0.0.0.0:18081 port: 18081 web_ui: true database: type: postgres host: localhost port: 5432 dbname: graphjin_development user: postgres password: postgres queries: path: "./queries" allow_sql: true allow_list: queries: - GetReports - GetProjects - GetUser # Log levels: debug, error, warn, info log_level: "debug" # Log formats: json, plain log_format: "json" 启动 GraphJin:GraphQL Editor http://localhost:18081/?...

七月 17, 2024 · 1 分钟 · 154 字 · Me