我正在尝试使用自制软件安装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)
谁能帮我解决这个问题。谢谢。
我正在尝试通过 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)