我想创建两个相关的实体。如何创建包含所需子实体的第一个实体。
我尝试了以下代码,但graphql返回以下错误:
{
"errors": [
{
"message": "Variable \"$stock\" of type \"createProductInput!\" used in position expecting type \"String\".",
"extensions": {
"category":
我正在尝试通过apollo客户端使用graphql。在前端有Ember,在后端我们有django和graphql服务器,在本教程()上实现。Ember应用程序在4200端口上,graphql服务器在8000/graphql上代理(ember s --proxy )
我试着遵循这个指南(),但没有graphcool,因为我们有后端。
在控制器signup.js中,我有
import Controller from '@ember/controller';
import { inject as service } from '@ember/service';
imp
新的使用vue作为前端,但我有vue 2.3.11作为前端和Django 3作为后端,并使用阿波罗通过vue-cli连接他们。
我在后端有一个名为documents的表,其中只有一个name和一个id字段,我使用graphql在前面发送这些字段来显示名称列表。在控制台上,我得到了一个错误Missing docList attribute on result
html的Vue文件模板
<template>
<div>
<h2>All the docs</h2>
<ul v-for="document in docL
我已经构建了一个Django,它使用和包来实现身份验证。我跟踪了包的文档,让所有的东西都工作了,一切都是从我的角度UI开始工作的。唯一的问题是,即使是从Postman发出的没有授权头的请求,也能够从graphql获取数据。
这是我的Django项目的settings.py
"""
Django settings for myproject project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, se
我正试着从和开始。
到目前为止,我已经按照AWS文档(特别是和)成功地创建了一个 (第三个代码片段),并启用了AppSync GraphQL API,如下所示:
$ amplify add api
? Please select from one of the below mentioned services GraphQL
? Provide API name: MySampleTodoAPI
? Choose an authorization type for the API API key
? Do you have an annotated GraphQL schema? No
? D