小编Luk*_*ssa的帖子

我可以将哪些选项传递给 Amplify.configure()?

似乎有两种不同的方法来配置 Amplify。一些示例使用键值属性格式:

import aws_exports from "./aws-exports";
Amplify.configure(aws_exports);
Run Code Online (Sandbox Code Playgroud)

其中 aws-exports 是这样的:

    const awsmobile = {
        "aws_project_region": "ap-southeast-2",
        "aws_appsync_graphqlEndpoint": "<my graphQL endpoint URL>",
        "aws_appsync_region": "ap-southeast-2",
        "aws_appsync_authenticationType": "API_KEY",
        "aws_appsync_apiKey": "<my API key>",
        "aws_cognito_region": "ap-southeast-2",
        "aws_user_pools_id": "<my user pool id>",
        "aws_user_pools_web_client_id": "<my user pool web client id>",
        "aws_cognito_identity_pool_id": "<my cognito id pool id>",
    };
    export default awsmobile;
Run Code Online (Sandbox Code Playgroud)

其他示例配置 Amplify(及其模块)以 json 格式传递属性:

Amplify.configure({
  Auth: {
    mandatorySignIn: true,
    region: "ap-southeast-2",
    userPoolId: "<my user pool id>",
    identityPoolId: "<my cognito id pool id>",
    userPoolWebClientId: "<my user pool web …
Run Code Online (Sandbox Code Playgroud)

aws-appsync aws-amplify

11
推荐指数
2
解决办法
7137
查看次数

AWS Amplify CLI 生成的 GraphQL 突变中的 $condition 输入参数是什么?

我已从此模型在 AWS AppSync 上(使用 CLI)生成了一个简单的 GraphQL API:

type WalletProperty @model {
    id: ID!
    title: String!
}
Run Code Online (Sandbox Code Playgroud)

这生成了 CreateWalletProperty、UpdateWalletProperty 和 DeleteWalletProperty 突变,所有这些都与此类似:

  mutation CreateWalletProperty(
    $input: CreateWalletPropertyInput!
    $condition: ModelWalletPropertyConditionInput    <<<<<<<<<<<<  what is this for?
  ) {
    createWalletProperty(input: $input, condition: $condition) {
      id
      title
      createdAt
      updatedAt
    }
  }
Run Code Online (Sandbox Code Playgroud)

条件的模式是:

input ModelWalletPropertyConditionInput {
  title: ModelStringInput
  and: [ModelWalletPropertyConditionInput]
  or: [ModelWalletPropertyConditionInput]
  not: ModelWalletPropertyConditionInput
}
Run Code Online (Sandbox Code Playgroud)

鉴于我总是必须提供强制性的 $input,$condition 参数有什么用?

graphql aws-appsync graphql-mutation graphql-codegen

6
推荐指数
1
解决办法
3858
查看次数

尝试使用实验室中的 VDataTable 但获取“VDataTable”未由 node_modules/vuetify/lib/components/index.mjs 错误导出

我正在将旧的 Vue 项目迁移到 Vue3 + Vuetify3 + Vite。我被困在 VDataTable 上,它可以通过Vuetify Labs获得。

我已按照说明在 vuetify.js 中导入 VDataTable 组件:

    import { createVuetify } from 'vuetify'
    import * as components from 'vuetify/components'
    import * as directives from 'vuetify/directives'
    import { VDataTable } from 'vuetify/labs/VDataTable'
    
    const vuetify = createVuetify({
      components : {
        ...components,
        VDataTable,
      },
      directives,
    });
    export default vuetify;
Run Code Online (Sandbox Code Playgroud)

但是当我尝试<v-data-table>在 MyTable 组件中使用时,我在控制台(vite dev 模式)中收到以下错误,并且该表未显示:

SyntaxError:请求的模块“/node_modules/.vite/deps/vuetify_components.js?v=56a024d1”不提供名为“VDataTable”的导出(位于 MyTable.vue?t=1678324759732:1:199)

我使用 Vite 和 Vuetify3Resolver 进行构建。不确定这是否相关 - 上面的语法不是直接导入组件吗?

另外,运行 avite build我收到以下错误:

    import { …
Run Code Online (Sandbox Code Playgroud)

vuejs3 vuetifyjs3

5
推荐指数
1
解决办法
3711
查看次数

如何从Websphere服务器中删除JProfiler配置?

在过去的几天里,我一直在使用JProfiler来配置本地运行的Websphere 7服务器(来自RAD8内部).我使用了JProfiler的服务器集成功能来连接到WAS实例.

我现在想要从WAS服务器实例中删除分析 - 每当我启动服务器时它显示为"分析" - 即使JProfiler没有运行.你如何从服务器"取消"JProfiler?

jprofiler

3
推荐指数
1
解决办法
1652
查看次数