我使用管理 UI 创建了一个应用程序,然后创建了一个新的 Vue JS 应用程序。
当我amplify pull --appId d2v01y74i7xjqk --envName staging在 CLI 上运行时,出现以下错误:
Invalid feature flag configuration
These feature flags are defined in the "amplify/cli.json" configuration file and are unknown to the currently running Amplify CLI:
graphqltransformer.skipoverridemutationinputtypes
This issue likely happens when the project has been pushed with a newer version of Amplify CLI, try updating to a newer version.
Run Code Online (Sandbox Code Playgroud)
我已将 amplify 升级到最新的 4.45.0 版本。
有谁知道如何解决这个问题?
我需要从数据库中获取特定字段,然后对结果进行分页,但不确定在哪里放置->paginate()。
我的代码如下:
Upload::where('sponsor_id', Request::segment(2))
//->paginate(20)
->join('users', 'users.id', 'uploads.uploaded_by')
->orderBy('uploads.created_at', 'DESC')
->get([
'uploads.filename',
'users.first_name',
'users.surname',
'uploads.errors',
'uploads.statistics',
'uploads.created_at',
])
Run Code Online (Sandbox Code Playgroud)
我没有分页就得到正确的结果,但我想对结果分页。