小编Nic*_*ick的帖子

当我尝试使用自制软件安装时,elasticsearch-full 再次出现错误

我正在尝试使用自制软件安装elasticsearch-full。我正在使用以下命令。

brew tap elastic/tap     
brew install elastic/tap/elasticsearch-full
Run Code Online (Sandbox Code Playgroud)

它返回以下错误。

Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
  /usr/local/Homebrew/Library/Taps/elastic/homebrew-tap/Formula/elasticsearch-full.rb:9

Error: No such file or directory - /usr/local/var/homebrew/linked/elasticsearch-full 
Run Code Online (Sandbox Code Playgroud)

请找到java版本, 在此输入图像描述

谁能帮我解决这个问题。谢谢。

homebrew elasticsearch

9
推荐指数
2
解决办法
8387
查看次数

type-graphql 找不到模块“类验证器”异常

我正在尝试通过 TypeORM 创建 GQL 突变并使用 SQL Server 作为数据库。如果我尝试运行突变,它会抛出异常。分享下面的代码;

索引.ts

(async () => {
    const app = express();
    
        await createConnection();
    
        const apolloServer = new ApolloServer({
            schema: await buildSchema({
                resolvers: [UserRegistrationResolver, HealthResolver],
            }),
            tracing: true,
            context: ({ req, res }) => ({ req, res })
        });
    
        apolloServer.applyMiddleware({ app, cors: false });
    
        app.listen(4000, () => {
            console.log("App is started");
        })
     })();
Run Code Online (Sandbox Code Playgroud)

GQL 类型:

@InputType()
export class UserRegistrationType {

      /*......*/
      @Field()
      Reg_Security_Qus_Ans: string;
     /*......*/

}
Run Code Online (Sandbox Code Playgroud)

实体:

@ObjectType()
@Entity()
export class User_Registration extends BaseEntity { …
Run Code Online (Sandbox Code Playgroud)

express graphql typeorm typegraphql

4
推荐指数
1
解决办法
3400
查看次数