apollo调试工具

Interested in learning JavaScript? Get my ebook at jshandbook.com

有兴趣学习JavaScript吗? 在jshandbook.com上获取我的电子书

阿波罗简介 (Introduction to Apollo)

In the last few years, GraphQL has gotten hugely popular as an alternative approach to building an API over REST.

在过去的几年中, GraphQL作为在REST上构建API的替代方法而广受欢迎。

GraphQL is a great way to let the client decide which data they want to be transmitted over the network, rather than having the server send a fixed set of data.

GraphQL是让客户端决定要通过网络传输哪些数据的好方法,而不是让服务器发送一组固定的数据。

Also, it allows you to specify nested resources, reducing the back and forth sometimes required when dealing with REST APIs.

此外,它还允许您指定嵌套资源,从而减少了在处理REST API时有时需要来回的问题。

Apollo is a team and community that builds on top of GraphQL, and provides different tools that help you build your projects.

Apollo是一个基于GraphQL的团队和社区,并提供不同的工具来帮助您构建项目。

The tools provided by Apollo are mainly three: Client, Server, Engine.

Apollo提供的工具主要有三种: ClientServerEngine

Apollo Client helps you consume a GraphQL API, with support for the most popular frontend web technologies like React, Vue, Angular, Ember, and Meteor. It also supports native development on iOS and Android.

Apollo Client可帮助您使用GraphQL API,并支持最流行的前端Web技术,例如React,Vue,Angular,Ember和Meteor。 它还支持iOS和Android上的本机开发。

Apollo Server is the server part of GraphQL, which interfaces with your backend and sends responses back to the client requests.

Apollo服务器是GraphQL的服务器部分,它与您的后端连接并将响应发送回客户端请求。

Apollo Engine is a hosted infrastructure (SaaS) that serves as a middle man between the client and your server, providing caching, performance reporting, load measurement, error tracking, schema field usage statistics, historical stats and many more goodies. It’s currently free up to 1 million requests per month, and it’s the only part of Apollo that’s not open source and free. It provides funding for the open source part of the project.

Apollo Engine是一个托管基础结构(SaaS),充当客户端和服务器之间的中间人,提供缓存,性能报告,负载测量,错误跟踪,架构字段使用情况统计信息,历史统计信息以及更多其他功能。 目前,它每月最多免费释放一百万个请求,这是Apollo唯一不开源且免费的部分。 它为项目的开源部分提供资金。

It’s worth noting that those three tools are not linked together in any way, and you can use just Apollo Client to interface with a 3rd part API, or serve an API using Apollo Server without having a client at all, for example.

值得注意的是,这三个工具没有以任何方式链接在一起,例如,您可以仅使用Apollo Client与第三部分API进行接口,也可以使用Apollo Server来提供API,例如根本不需要客户端。

使用Apollo的一些好处 (Some benefits of using Apollo)

It’s all compatible with the GraphQL standard specification, so there is no proprietary or incompatible tech in Apollo.

它们都与GraphQL标准规范兼容 ,因此Apollo中没有专有或不兼容的技术。

But it’s very convenient to have all those tools together under a single roof as a complete suite for all your GraphQL-related needs.

但是将所有这些工具放在一起作为一个完整套件非常方便,可以满足您所有与GraphQL相关的需求。

Apollo strives to be easy to use and easy to contribute to.

阿波罗(Apollo)努力做到易于使用和易于贡献。

Apollo Client and Apollo Server are all community projects, built by the community, for the community. Apollo is backed by the Meteor Development Group (the company behind Meteor), a very popular JavaScript framework.

Apollo Client和Apollo Server都是由社区为社区构建的社区项目。 Apollo得到了非常流行JavaScript框架Meteor Development Group ( Meteor背后的公司)的支持。

Apollo is focused on keeping things simple. This is something key to the success of a technology that wants to become popular. Much of the tech or frameworks or libraries out there might be overkill for 99% of small or medium companies, and is really suited for the big companies with very complex needs.

阿波罗致力于保持简单 。 这是想要普及的技术成功的关键。 那里的许多技术,框架或库对于99%的中小型公司来说可能是过大的杀伤力,并且确实适合具有非常复杂需求的大公司。

阿波罗客户 (Apollo Client)

Apollo Client is the leading JavaScript client for GraphQL. Since it’s community-driven, it’s designed to let you build UI components that interface with GraphQL data — either in displaying that data, or in performing mutations when certain actions happen.

Apollo客户端是GraphQL的领先JavaScript客户端。 由于它是由社区驱动的,因此可以让您构建与GraphQL数据交互的UI组件-在显示数据或执行某些操作时执行突变。

You don’t need to change everything in your application to make use of Apollo Client. You can start with just one tiny layer and one request, and expand from there.

您无需更改应用程序中的任何内容即可使用Apollo Client。 您可以从一个很小的层和一个请求开始,然后从那里扩展。

Most of all, Apollo Client is built to be simple, small, and flexible from the ground up.

最重要的是,Apollo Client的构建从一开始就是简单,小巧和灵活。

In this post I’m going to detail the process of using Apollo Client within a React application.

在这篇文章中,我将详细介绍在React应用程序中使用Apollo Client的过程。

I’ll use the GitHub GraphQL API as a server.

我将使用GitHub GraphQL API作为服务器。

启动一个React应用 (Start a React app)

I use create-react-app to setup the React app, which is very convenient and just adds the bare bones of what we need:

我使用create-react-app设置React应用程序,这非常方便,并且只需添加我们所需的内容即可:

npx create-react-app myapp

npx is a command available in the latest npm versions. Update npm if you do not have this command.

npx 是最新npm版本中可用的命令。 如果没有此命令,请更新npm。

Start the app local server with

使用以下命令启动应用程序本地服务器

yarn start

Open src/index.js:

打开src/index.js

import React from 'react'import ReactDOM from 'react-dom'import './index.css'import App from './App'import registerServiceWorker from './registerServiceWorker'ReactDOM.render(<App />, document.getElementById('root'))registerServiceWorker()

and remove all this content.

并删除所有这些内容。

开始使用Apollo Boost (Get started with Apollo Boost)

Apollo Boost is the easiest way to start using Apollo Client on a new project. We’ll install that in addition to react-apollo and graphql.

Apollo Boost是在新项目上开始使用Apollo Client的最简单方法。 除了react-apollographql之外,我们还将安装它。

In the console, run

在控制台中,运行

yarn add apollo-boost react-apollo graphql

or with npm:

或使用npm:

npm install apollo-boost react-apollo graphql --save

创建一个ApolloClient对象 (Create an ApolloClient object)

You start by importing ApolloClient from apollo-client in index.js:

首先从index.js apollo-client导入ApolloClient:

import { ApolloClient } from 'apollo-client'const client = new ApolloClient()

By default Apollo Client uses the /graphql endpoint on the current host, so let’s use an Apollo Link to specify the details of the connection to the GraphQL server by setting the GraphQL endpoint URI.

默认情况下,Apollo Client在当前主机上使用/graphql端点,因此让我们使用Apollo Link通过设置GraphQL端点URI来指定与GraphQL服务器的连接的详细信息。

An Apollo Link is represented by an HttpLink object, which we import from apollo-link-http.

Apollo链接由HttpLink对象表示,该对象是我们从apollo-link-http导入的。

Apollo Link provides us a way to describe how we want to get the result of a GraphQL operation, and what we want to do with the response.

Apollo Link为我们提供了一种描述我们如何获取GraphQL操作结果以及如何对响应进行处理的方法。

In short, you create multiple Apollo Link instances that all act on a GraphQL request one after another, providing the final result you want. Some Links can give you the option of retrying a request if not successful, batching, and much more.

简而言之,您将创建多个Apollo Link实例,这些实例一个接一个地作用于GraphQL请求,从而提供所需的最终结果。 某些链接可以让您选择重试请求(如果未成功),批处理等等。

We’ll add an Apollo Link to our Apollo Client instance to use the GitHub GraphQL endpoint URI https://api.github.com/graphql

我们将Apollo链接添加到我们的Apollo Client实例,以使用GitHub GraphQL端点URI https://api.github.com/graphql

import { ApolloClient } from 'apollo-client'import { HttpLink } from 'apollo-link-http'const client = new ApolloClient({  link: new HttpLink({ uri: 'https://api.github.com/graphql' })})

快取 (Caching)

We’re not done yet. Before having a working example we must also tell ApolloClient which caching strategy to use: InMemoryCache is the default and it’s a good one with which to start.

我们还没有完成。 在ApolloClient示例之前,我们还必须告诉ApolloClient哪种缓存策略 : InMemoryCache是默认的,并且是一个很好的起点。

import { ApolloClient } from 'apollo-client'import { HttpLink } from 'apollo-link-http'import { InMemoryCache } from 'apollo-cache-inmemory'const client = new ApolloClient({  link: new HttpLink({ uri: 'https://api.github.com/graphql' }),  cache: new InMemoryCache()})

使用ApolloProvider (Use ApolloProvider)

Now we need to connect the Apollo Client to our component tree. We do so using ApolloProvider, by wrapping our application component in the main React file:

现在,我们需要将Apollo客户端连接到我们的组件树。 我们通过使用ApolloProvider来实现此ApolloProvider ,方法是将应用程序组件包装在主React文件中:

import React from 'react'import ReactDOM from 'react-dom'import { ApolloClient } from 'apollo-client'import { HttpLink } from 'apollo-link-http'import { InMemoryCache } from 'apollo-cache-inmemory'import { ApolloProvider } from 'react-apollo'import App from './App'const client = new ApolloClient({  link: new HttpLink({ uri: 'https://api.github.com/graphql' }),  cache: new InMemoryCache()})ReactDOM.render(  <ApolloProvider client={client}>    <App />  </ApolloProvider>,  document.getElementById('root'))

This is enough to render the default create-react-app screen, with Apollo Client initialized:

这足以渲染默认的create-react-app屏幕,并初始化Apollo Client:

gql模板标签 (The gql template tag)

We’re now ready to do something with Apollo Client, and we’re going to fetch some data from the GitHub API and render it.

现在,我们准备使用Apollo Client做一些事情,并且我们将从GitHub API中获取一些数据并进行渲染。

To do so, we need to import the gql template tag:

为此,我们需要导入gql模板标签:

import gql from 'graphql-tag'

Any GraphQL query will be built using this template tag, like this:

任何GraphQL查询都将使用此模板标记构建,如下所示:

const query = gql`  query {    ...  }`

执行GraphQL请求 (Perform a GraphQL request)

gql was the last item we needed in our toolset.

gql是我们工具集中需要的最后一项。

We’re now ready to do something with Apollo Client, and we’re going to fetch some data from the GitHub API and render it.

现在,我们准备使用Apollo Client做一些事情,并且我们将从GitHub API中获取一些数据并进行渲染。

获取API的访问令牌 (Obtain an access token for the API)

The first thing to do is to obtain a personal access token from GitHub.

首先要做的是从GitHub 获取个人访问令牌 。

GitHub makes it easy by providing an interface from which you select any permission you might need:

GitHub提供了一个界面,您可以从中选择可能需要的任何权限,从而使其变得容易:

For the sake of this example tutorial, you don’t need any of those permissions. They are meant for access to private user data, but we will just query the public repositories data.

在本示例教程中,您不需要任何这些权限。 它们旨在访问私有用户数据,但我们仅查询公共存储库数据。

The token you get is an OAuth 2.0 Bearer token.

您获得的令牌是OAuth 2.0承载令牌

You can easily test it by running from the command line:

您可以通过从命令行运行轻松地对其进行测试:

$ curl -H "Authorization: bearer ***_YOUR_TOKEN_HERE_***" -X POST -d " \ { \   \"query\": \"query { viewer { login }}\" \ } \" https://api.github.com/graphql

which should give you the result

这应该给你结果

{"data":{"viewer":{"login":"***_YOUR_LOGIN_NAME_***"}}}

or

要么

{  "message": "Bad credentials",  "documentation_url": "https://developer.github.com/v4"}

if something went wrong.

如果出现问题。

So, we need to send the Authorization header along with our GraphQL request, just like we did in the curl request above.

因此,我们需要将Authorization标头与GraphQL请求一起发送,就像我们在上面的curl请求中所做的一样。

We can do this with Apollo Client by creating an Apollo Link middleware. Start with installing apollo-link-context:

我们可以通过创建Apollo Link中间件来使用Apollo Client来实现。 从安装apollo-link-context

npm install apollo-link-context

This package allows us to add an authentication mechanism by setting the context of our requests.

该软件包允许我们通过设置请求的上下文来添加身份验证机制。

We can use it in this code by referencing the setContext function in this way:

通过以这种方式引用setContext函数,可以在此代码中使用它:

const authLink = setContext((_, { headers }) => {  const token = '***YOUR_TOKEN**'  return {    headers: {      ...headers,      authorization: `Bearer ${token}`    }  }})

and once we have this new Apollo Link, we can compose it with the HttpLink we already had by using the concat() method on a link:

一旦有了这个新的Apollo链接,就可以通过在链接上使用concat()方法将其与已经拥有的HttpLink 组合起来:

const link = authLink.concat(httpLink)

Here is the full code for the src/index.js file with the code we have right now:

这是src/index.js文件的完整代码,其中包含我们现在拥有的代码:

import React from 'react'import ReactDOM from 'react-dom'import { ApolloClient } from 'apollo-client'import { HttpLink } from 'apollo-link-http'import { InMemoryCache } from 'apollo-cache-inmemory'import { ApolloProvider } from 'react-apollo'import { setContext } from 'apollo-link-context'import gql from 'graphql-tag'import App from './App'const httpLink = new HttpLink({ uri: 'https://api.github.com/graphql' })const authLink = setContext((_, { headers }) => {  const token = '***YOUR_TOKEN**'  return {    headers: {      ...headers,      authorization: `Bearer ${token}`    }  }})const link = authLink.concat(httpLink)const client = new ApolloClient({  link: link,  cache: new InMemoryCache()})ReactDOM.render(  <ApolloProvider client={client}>    <App />  </ApolloProvider>,  document.getElementById('root'))

WARNING ⚠️ ? Keep in mind that this code is an example for educational purposes. It exposes your GitHub GraphQL API for the world to see in your frontend-facing code. Production code needs to keep this token private.

警告⚠️? 请记住,此代码只是出于教育目的的示例 它向全世界公开了您的GitHub GraphQL API,供您在面向前端的代码中查看。 生产代码需要将此令牌设为私有。

We can now make the first GraphQL request at the bottom of this file, and this sample query asks for the names and the owners of the 10 most popular repositories with more than 50k stars:

现在,我们可以在该文件的底部发出第一个GraphQL请求,此示例查询将询问10个最受欢迎的,存储量超过5万颗星的存储库的名称和所有者:

const POPULAR_REPOSITORIES_LIST = gql`{  search(query: "stars:>50000", type: REPOSITORY, first: 10) {    repositoryCount    edges {      node {        ... on Repository {          name          owner {            login          }          stargazers {            totalCount          }        }      }    }  }}`client.query({ query: POPULAR_REPOSITORIES_LIST }).then(console.log)

Running this code successfully returns the result of our query in the browser console:

运行此代码成功返回浏览器控制台中查询的结果:

呈现组件中的GraphQL查询结果集 (Render a GraphQL query result set in a component)

What we’ve seen up to now is already cool. What’s even cooler is using the GraphQL result set to render your components.

到目前为止,我们已经看到的很酷。 更酷的是使用GraphQL结果集渲染组件。

We let Apollo Client have the burden (or joy) or fetching the data and handling all the low-level stuff. This lets us focus on showing the data by using the graphql component enhancer offered by react-apollo:

我们让Apollo Client承担(或享受)负担,或者获取数据并处理所有低层次的东西。 这让我们专注于通过使用react-apollo提供的graphql组件增强器来显示数据:

import React from 'react'import { graphql } from 'react-apollo'import { gql } from 'apollo-boost'const POPULAR_REPOSITORIES_LIST = gql`{  search(query: "stars:>50000", type: REPOSITORY, first: 10) {    repositoryCount    edges {      node {        ... on Repository {          name          owner {            login          }          stargazers {            totalCount          }        }      }    }  }}`const App = graphql(POPULAR_REPOSITORIES_LIST)(props =>  <ul>    {props.data.loading ? '' : props.data.search.edges.map((row, i) =>      <li key={row.node.owner.login + '-' + row.node.name}>        {row.node.owner.login} / {row.node.name}: {' '}        <strong>          {row.node.stargazers.totalCount}        </strong>      </li&gt;    )}  </ul>)export default App

Here is the result of our query rendered in the component ?

这是在组件中呈现查询结果的结果吗?

阿波罗服务器 (Apollo Server)

A GraphQL server has the job of accepting incoming requests on an endpoint, interpreting the request and looking up any data that’s necessary to fulfill the client’s needs.

GraphQL服务器的工作是在终结点计算机上接受传入的请求,解释请求并查找满足客户端需求所需的任何数据。

There are tons of different GraphQL server implementations for every possible language.

每种可能的语言都有许多不同的GraphQL服务器实现。

Apollo Server is a GraphQL server implementation for JavaScript, in particular for the Node.js platform.

Apollo Server是GraphQL服务器实现,用于JavaScript,尤其是Node.js平台

It supports many popular Node.js frameworks, including:

它支持许多流行的Node.js框架,包括:

  • Express

    表达

  • Hapi

    哈皮

  • Koa

    考阿

  • Restify

    重新调整

The Apollo Server basically gives us three things:

Apollo服务器基本上为我们提供了三件事:

  • A way to describe our data with a schema.

    模式描述我们的数据的一种方法。

  • The framework for resolvers, which are functions we write to fetch the data needed to fulfill a request.

    解析程序的框架,我们编写的函数用于获取满足请求所需的数据。

  • It facilitates handling authentication for our API.

    它有助于处理我们API的身份验证

For the sake of learning the basics of Apollo Server, we’re not going to use any of the supported Node.js frameworks. Instead, we’ll be using something that was built by the Apollo team, something really great which will be the base of our learning: Launchpad.

为了学习Apollo Server的基础知识,我们将不使用任何受支持的Node.js框架。 取而代之的是,我们将使用由Apollo团队构建的东西,那些真正伟大的东西,这将是我们学习的基础:启动板。

发射台 (Launchpad)

Launchpad is a project that’s part of the Apollo umbrella of products, and it’s a pretty amazing tool that allows us to write code on the cloud and create a an Apollo Server online, just like we’d run a snippet of code on Codepen, JSFiddle or JSBin.

Launchpad是一个项目,是Apollo产品系列的一部分,它是一个非常了不起的工具,它使我们可以在云上编写代码并在线创建Apollo服务器,就像我们在Codepen,JSFiddle上运行代码段一样或JSBin。

Except that instead of building a visual tool that’s going to be isolated there, and meant just as a showcase or as a learning tool, with Launchpad we create a GraphQL API. It’s going to be publicly accessible.

除了使用构建的演示工具而不是构建将在此处隔离的可视工具(即作为展示工具或学习工具)之外,我们使用Launchpad创建了GraphQL API。 这将是公开可用的。

Every project on Launchpad is called pad and has its GraphQL endpoint URL, like:

Launchpad上的每个项目都称为pad,并具有其GraphQL端点URL,例如:

https://1jzxrj129.lp.gql.zone/graphql

Once you build a pad, Launchpad gives you the option to download the full code of the Node.js app that’s running it, and you just need to run npm install and npm start to have a local copy of your Apollo GraphQL Server.

构建好便笺本后,Launchpad为您提供了下载正在运行它的Node.js应用程序的完整代码的选项,您只需要运行npm installnpm start即可获得Apollo GraphQL Server的本地副本。

To summarize, it’s a great tool to learn, share, and prototype.

总而言之,它是学习,共享和制作原型好工具

Apollo服务器Hello World (The Apollo Server Hello World)

Every time you create a new Launchpad pad, you are presented with the Hello, World! of Apollo Server. Let’s dive into it.

每次创建新的Launchpad pad时 ,都会向您显示Hello,World! Apollo服务器。 让我们开始吧。

First you import the makeExecutableSchema function from graphql-tools.

首先,您从graphql-tools导入makeExecutableSchema函数。

import { makeExecutableSchema } from 'graphql-tools'

This function is used to create a GraphQLSchema object, by providing it a schema definition (written in the GraphQL schema language) and a set of resolvers.

通过提供一个模式定义(以GraphQL模式语言编写)和一组解析器 ,此函数用于创建GraphQLSchema对象。

A schema definition is an template literal string containing the description of our query and the types associated with each field:

模式定义是模板文字字符串,其中包含查询的描述以及与每个字段关联的类型:

const typeDefs = `  type Query {    hello: String  }`

A resolver is an object that maps fields in the schema to resolver functions. It’s able to lookup data to respond to a query.

解析器是将架构中的字段映射到解析器功能的对象。 它能够查找数据以响应查询。

Here is a simple resolver containing the resolver function for the hello field, which simply returns the Hello world! string:

这是一个简单的解析器,其中包含hello字段的resolver函数,该函数仅返回Hello world! 串:

const resolvers = {  Query: {    hello: (root, args, context) => {      return 'Hello world!'    }  }}

Given those two elements, the schema definition and the resolver, we use the makeExecutableSchema function we imported previously to get a GraphQLSchema object, which we assign to the schema const.

给定这两个元素,即模式定义和解析器,我们使用之前导入的makeExecutableSchema函数来获取GraphQLSchema对象,该对象将分配给schema const。

export const schema = makeExecutableSchema({ typeDefs, resolvers })

This is all you need to serve a simple read-only API. Launchpad takes care of the tiny details.

这是所有你需要成为一个简单的只读API。 Launchpad处理细微的细节。

Here is the full code for the simple Hello World example:

这是简单的Hello World示例的完整代码:

import { makeExecutableSchema } from 'graphql-tools'const typeDefs = `  type Query {    hello: String  }`const resolvers = {  Query: {    hello: (root, args, context) => {      return 'Hello world!'    }  }}export const schema = makeExecutableSchema({  typeDefs,  resolvers})

Launchpad provides a great built-in tool to consume the API:

Launchpad提供了一个很棒的内置工具来使用API​​:

And as I said previously, the API is publicly accessible so you just need to login and save your pad.

正如我之前说的,该API可公开访问,因此您只需登录并保存便笺本即可。

I made a pad that exposes its endpoint at https://kqwwkp0pr7.lp.gql.zone/graphql, so let’s try it using curl from the command line:

我制作了一个垫板,以在https://kqwwkp0pr7.lp.gql.zone/graphql处暴露其端点,因此让我们在命令行中使用curl尝试一下:

$ curl \  -X POST \  -H "Content-Type: application/json" \  --data '{ "query": "{ hello }" }' \  https://kqwwkp0pr7.lp.gql.zone/graphql

which successfully gives us the result we expect:

成功地给了我们我们期望的结果:

{  "data": {    "hello": "Hello world!"  }}

在本地运行GraphQL Server (Run the GraphQL Server locally)

We mentioned that anything you create on Launchpad is downloadable, so let’s go on.

我们提到,您在Launchpad上创建的任何内容都可以下载,因此让我们继续。

The package is composed of two files. The first, schema.js is what we have above.

该程序包由两个文件组成。 首先, schema.js是上面的内容。

The second, server.js, was invisible in Launchpad and that is what provides the underlying Apollo Server functionality, powered by Express, the popular Node.js framework.

第二个服务器server.js在Launchpad中不可见,它提供了底层的Apollo Server功能,由流行的Node.js框架Express提供支持。

It is not the simplest example of an Apollo Server setup, so for the sake of explaining, I’m going to replace it with a simpler example (but feel free to study that after you’ve understood the basics).

这不是Apollo Server设置的最简单示例,因此为了说明起见,我将用一个更简单的示例替换它(但在您了解基本知识之后,请随时进行学习)。

您的第一个Apollo Server代码 (Your first Apollo Server code)

First, run npm install and npm start on the Launchpad code you downloaded.

首先,在下载的启动板代码上运行npm installnpm start

The node server we initialized previusly uses nodemon to restart the server when the files change, so when you change the code, the server is restarted with your changes applied.

当文件更改时,我们初始化的节点服务器通常使用nodemon来重新启动服务器,因此,在更改代码时,将应用所做的更改来重新启动服务器。

Add this code in server.js:

将此代码添加到server.js

const express = require('express')const bodyParser = require('body-parser')const { graphqlExpress } = require('apollo-server-express')const { schema } = require('./schema')const server = express()server.use('/graphql', bodyParser.json(), graphqlExpress({ schema }))server.listen(3000, () => {  console.log('GraphQL listening at http://localhost:3000/graphql')})

With just 11 lines, this is much simpler than the server set up by Launchpad, because we removed all the things that made that code more flexible for their needs.

仅用11行,这比Launchpad设置的服务器简单得多,因为我们删除了所有使代码更灵活地满足其需求的内容。

Coding forces you to make tough decisions: how much flexibility do you need now? How important is it to have clean, understandable code that you can pick up six months from now and easily tweak, or pass to other developers and team members so they can be productive in as little time as needed?

编码迫使您做出艰难的决定:您现在需要多少灵活性? 拥有清晰,可理解的代码(从现在起六个月内可以提取并轻松进行调整),或者将其传递给其他开发人员和团队成员,从而使他们可以在短时间内获得生产力,这有多重要?

Here’s what the code does:

代码是这样的:

We first import a few libraries we’re going to use.

我们首先导入一些将要使用的库。

  • express which will power the underlying network functionality to expose the endpoint

    express将为基础网络功能提供动力以暴露端点

  • bodyParser is the Node body parsing middleware

    bodyParser是Node主体解析中间件

  • graphqlExpress is the Apollo Server object for Express

    graphqlExpress是Express的Apollo服务器对象

const express = require('express')const bodyParser = require('body-parser')const { graphqlExpress } = require('apollo-server-express')

Next we import the GraphQLSchema object we created in the schema.js file above as Schema:

接下来,我们将在上面的schema.js文件中创建的GraphQLSchema对象导入为Schema

const { schema } = require('./schema')

Here is some standard Express set, and we just initialize a server on port 3000

这是一些标准的Express集,我们只是在端口3000上初始化服务器

const server = express()

Now we are ready to initialize Apollo Server:

现在我们准备初始化Apollo Server:

graphqlExpress({ schema })

and we pass that as a callback to our endpoint to HTTP JSON requests:

并将其作为回调传递给端点,以传递给HTTP JSON请求:

server.use('/graphql', bodyParser.json(), graphqlExpress({ schema }))

All we need now is to start Express:

现在我们需要启动Express:

server.listen(3000, () => {  console.log('GraphQL listening at http://localhost:3000/graphql')})

添加一个GraphiQL端点 (Add a GraphiQL endpoint)

If you use GraphiQL, you can easily add a /graphiql endpoint, to consume with the GraphiQL interactive in-browser IDE:

如果使用GraphiQL,则可以轻松添加/graphiql端点,以与GraphiQL交互式浏览器内置IDE配合使用 :

server.use('/graphiql', graphiqlExpress({  endpointURL: '/graphql',  query: ``}))

We now just need to start up the Express server:

现在,我们只需要启动Express服务器:

server.listen(PORT, () => {  console.log('GraphQL listening at http://localhost:3000/graphql')  console.log('GraphiQL listening at http://localhost:3000/graphiql')})

You can test it by using curl again:

您可以再次使用curl进行测试:

$ curl \  -X POST \  -H "Content-Type: application/json" \  --data '{ "query": "{ hello }" }' \  http://localhost:3000/graphql

This will give you the same result as above, where you called the Launchpad servers:

这将为您提供与上述相同的结果,其中您将启动板服务器称为:

{  "data": {    "hello": "Hello world!"  }}

Interested in learning JavaScript? Get my ebook at jshandbook.com

有兴趣学习JavaScript吗? 在jshandbook.com上获取我的电子书

翻译自: https://www.freecodecamp.org/news/a-complete-introduction-to-apollo-the-graphql-toolkit-83acab4b8143/

apollo调试工具

查看全文
如若内容造成侵权/违法违规/事实不符,请联系编程学习网邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!

相关文章

  1. 西安双眼皮好诊治艺星

    ...

    2024/4/21 7:04:04
  2. 双眼皮整形广州美莱有

    ...

    2024/4/21 7:04:02
  3. 做双眼皮多久能化妆

    ...

    2024/4/21 7:04:01
  4. 福州双眼皮新世纪睐

    ...

    2024/4/21 7:04:02
  5. 关于angular路由结构

    整体目录结构&#xff0c;很简单&#xff0c;css和js以及下载的框架插件包文件夹各一个&#xff0c;还有一个index.html主页文件一个。 js文件夹下&#xff0c;一份json格式的假数据&#xff0c;一个index.js &#xff0c;用来配置个页面路由信息&#xff0c;以及一个自己封装的…...

    2024/4/21 7:04:00
  6. 抽脂埋线双眼皮眼睛看着没精神

    ...

    2024/4/21 7:03:58
  7. Angular之路由篇一

    AngularJS 路由允许我们通过不同的 URL 访问不同的内容。 通过 AngularJS 可以实现多视图的单页Web应用&#xff08;single page web application&#xff0c;SPA&#xff09;。 路由原理&#xff1a; SPA单页面应用&#xff1a; 实例应用&#xff1a; 1.引入Angular核心框架文…...

    2024/4/25 15:32:08
  8. angular的路由实现,ngRoute

    你学习一个新的框架都会有一个理由&#xff0c;我学习angular的理由就是因为angular的路由功能&#xff0c;只能说&#xff0c;开发angular的大神太溜了~~~ 下面&#xff0c;开始介绍我对ngRoute的使用心得 ngRoute不属于angular的核心库&#xff0c;需要将ngRoute模块额外的…...

    2024/4/28 13:00:27
  9. Angular路由--路由守卫

    2019独角兽企业重金招聘Python工程师标准>>> 在用户试图导航到某个目标组件时&#xff0c;通过路由守卫判断用户状态等信息来授予用户访问权限。 路由器支持多种守卫&#xff1a; 用CanActivate来处理导航到某路由的情况。用CanActivateChild处理导航到子路由的情况…...

    2024/4/21 7:03:56
  10. angular路由的简单应用

    <!DOCTYPE html> <html> <head> <meta charset"UTF-8"> <title></title> <!-- 路由&#xff1a; 路线 通过超链接&#xff0c;连接不同的页面。 …...

    2024/4/21 7:03:55
  11. 天津拉双眼皮榜首美莱

    ...

    2024/4/21 7:03:53
  12. angular路由写法实例

    为什么80%的码农都做不了架构师&#xff1f;>>> <!DOCTYPE html><html ng-app"webPerson">//ng-app 此处实现的是页面的模块化<head> <meta charset"UTF-8"> <title>web前端</title> <link r…...

    2024/4/21 7:03:52
  13. angular路由操作

    在单页面应用程序中比如angular应用&#xff0c;我们需要根据url的变化(即&#xff1a;不同的请求)&#xff0c;来分配不同的资源。根据请求的URL来决定执行哪个模块&#xff0c;这个过程叫路由&#xff0c;同时&#xff0c;我们需要设计路由规则。 下面给出一个简单的小demo: …...

    2024/4/21 7:03:51
  14. 洛阳割双眼皮疗法协和

    ...

    2024/4/20 18:56:29
  15. 济南如何避免双眼皮后遗症

    ...

    2024/4/20 18:56:27
  16. 双眼皮伤口发炎会有后遗症吗

    ...

    2024/4/20 18:56:26
  17. angular Js 回车处理

    不说多的&#xff0c;就一个代码&#xff1a; <input type"search" class"am-form-field" placeholder"输入搜索关键字" ng-model"SearchKey" ng-keypress"($event.which 13)?GetList():0">GetList() 为函数 转载于…...

    2024/4/20 18:56:25
  18. Angular JS 自动解析绑定内容中的html

    我在公司使用angular js 做程序有一段时间了&#xff0c;总结了一些小知识点&#xff0c;下面就给大家介绍一下angular js 对数据绑定的时候&#xff0c;数据内容中含有html标签&#xff0c;如何在内容显示的时候将html标签自动解析&#xff1a; 1、首先在你的项目中引用sani…...

    2024/5/4 17:57:25
  19. 达州双眼皮修复选 妃美

    ...

    2024/4/21 7:03:49
  20. 达州割双眼皮推荐妃美

    ...

    2024/4/21 7:03:48

最新文章

  1. C#-哈希表

    哈希表&#xff08;Hash Table&#xff09;是一种数据结构&#xff0c;用于实现键值对之间的映射关系。在哈希表中&#xff0c;通过将键&#xff08;key&#xff09;通过哈希函数转换成索引&#xff0c;然后将值&#xff08;value&#xff09;存储在对应索引的位置上&#xff0…...

    2024/5/7 18:58:29
  2. 梯度消失和梯度爆炸的一些处理方法

    在这里是记录一下梯度消失或梯度爆炸的一些处理技巧。全当学习总结了如有错误还请留言&#xff0c;在此感激不尽。 权重和梯度的更新公式如下&#xff1a; w w − η ⋅ ∇ w w w - \eta \cdot \nabla w ww−η⋅∇w 个人通俗的理解梯度消失就是网络模型在反向求导的时候出…...

    2024/5/7 10:36:02
  3. Unity核心学习

    目录 认识模型的制作流程模型的制作过程 2D相关图片导入设置图片导入概述纹理类型设置纹理形状设置纹理高级设置纹理平铺拉伸设置纹理平台打包相关设置 SpriteSprite Editor——Single图片编辑Sprite Editor——Multiple图片编辑Sprite Editor——Polygon图片编辑SpriteRendere…...

    2024/5/5 8:40:53
  4. C# 抽象类、接口

    &#xff08;1&#xff09;、抽象类和抽象方法的定义和实现&#xff1a;abstract override abstract class Vehicle{ public abstract void Run(); } 继承抽象类并且实现抽象方法 class RaceCar : Vehicle{ public override void Run(){ } } &#xff08;2&#xff09;、接口的…...

    2024/5/6 11:49:43
  5. 【外汇早评】美通胀数据走低,美元调整

    原标题:【外汇早评】美通胀数据走低,美元调整昨日美国方面公布了新一期的核心PCE物价指数数据,同比增长1.6%,低于前值和预期值的1.7%,距离美联储的通胀目标2%继续走低,通胀压力较低,且此前美国一季度GDP初值中的消费部分下滑明显,因此市场对美联储后续更可能降息的政策…...

    2024/5/7 5:50:09
  6. 【原油贵金属周评】原油多头拥挤,价格调整

    原标题:【原油贵金属周评】原油多头拥挤,价格调整本周国际劳动节,我们喜迎四天假期,但是整个金融市场确实流动性充沛,大事频发,各个商品波动剧烈。美国方面,在本周四凌晨公布5月份的利率决议和新闻发布会,维持联邦基金利率在2.25%-2.50%不变,符合市场预期。同时美联储…...

    2024/5/7 9:45:25
  7. 【外汇周评】靓丽非农不及疲软通胀影响

    原标题:【外汇周评】靓丽非农不及疲软通胀影响在刚结束的周五,美国方面公布了新一期的非农就业数据,大幅好于前值和预期,新增就业重新回到20万以上。具体数据: 美国4月非农就业人口变动 26.3万人,预期 19万人,前值 19.6万人。 美国4月失业率 3.6%,预期 3.8%,前值 3…...

    2024/5/4 23:54:56
  8. 【原油贵金属早评】库存继续增加,油价收跌

    原标题:【原油贵金属早评】库存继续增加,油价收跌周三清晨公布美国当周API原油库存数据,上周原油库存增加281万桶至4.692亿桶,增幅超过预期的74.4万桶。且有消息人士称,沙特阿美据悉将于6月向亚洲炼油厂额外出售更多原油,印度炼油商预计将每日获得至多20万桶的额外原油供…...

    2024/5/7 14:25:14
  9. 【外汇早评】日本央行会议纪要不改日元强势

    原标题:【外汇早评】日本央行会议纪要不改日元强势近两日日元大幅走强与近期市场风险情绪上升,避险资金回流日元有关,也与前一段时间的美日贸易谈判给日本缓冲期,日本方面对汇率问题也避免继续贬值有关。虽然今日早间日本央行公布的利率会议纪要仍然是支持宽松政策,但这符…...

    2024/5/4 23:54:56
  10. 【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响

    原标题:【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响近日伊朗局势升温,导致市场担忧影响原油供给,油价试图反弹。此时OPEC表态稳定市场。据消息人士透露,沙特6月石油出口料将低于700万桶/日,沙特已经收到石油消费国提出的6月份扩大出口的“适度要求”,沙特将满…...

    2024/5/4 23:55:05
  11. 【外汇早评】美欲与伊朗重谈协议

    原标题:【外汇早评】美欲与伊朗重谈协议美国对伊朗的制裁遭到伊朗的抗议,昨日伊朗方面提出将部分退出伊核协议。而此行为又遭到欧洲方面对伊朗的谴责和警告,伊朗外长昨日回应称,欧洲国家履行它们的义务,伊核协议就能保证存续。据传闻伊朗的导弹已经对准了以色列和美国的航…...

    2024/5/4 23:54:56
  12. 【原油贵金属早评】波动率飙升,市场情绪动荡

    原标题:【原油贵金属早评】波动率飙升,市场情绪动荡因中美贸易谈判不安情绪影响,金融市场各资产品种出现明显的波动。随着美国与中方开启第十一轮谈判之际,美国按照既定计划向中国2000亿商品征收25%的关税,市场情绪有所平复,已经开始接受这一事实。虽然波动率-恐慌指数VI…...

    2024/5/7 11:36:39
  13. 【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试

    原标题:【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试美国和伊朗的局势继续升温,市场风险情绪上升,避险黄金有向上突破阻力的迹象。原油方面稍显平稳,近期美国和OPEC加大供给及市场需求回落的影响,伊朗局势并未推升油价走强。近期中美贸易谈判摩擦再度升级,美国对中…...

    2024/5/4 23:54:56
  14. 【原油贵金属早评】市场情绪继续恶化,黄金上破

    原标题:【原油贵金属早评】市场情绪继续恶化,黄金上破周初中国针对于美国加征关税的进行的反制措施引发市场情绪的大幅波动,人民币汇率出现大幅的贬值动能,金融市场受到非常明显的冲击。尤其是波动率起来之后,对于股市的表现尤其不安。隔夜美国股市出现明显的下行走势,这…...

    2024/5/6 1:40:42
  15. 【外汇早评】美伊僵持,风险情绪继续升温

    原标题:【外汇早评】美伊僵持,风险情绪继续升温昨日沙特两艘油轮再次发生爆炸事件,导致波斯湾局势进一步恶化,市场担忧美伊可能会出现摩擦生火,避险品种获得支撑,黄金和日元大幅走强。美指受中美贸易问题影响而在低位震荡。继5月12日,四艘商船在阿联酋领海附近的阿曼湾、…...

    2024/5/4 23:54:56
  16. 【原油贵金属早评】贸易冲突导致需求低迷,油价弱势

    原标题:【原油贵金属早评】贸易冲突导致需求低迷,油价弱势近日虽然伊朗局势升温,中东地区几起油船被袭击事件影响,但油价并未走高,而是出于调整结构中。由于市场预期局势失控的可能性较低,而中美贸易问题导致的全球经济衰退风险更大,需求会持续低迷,因此油价调整压力较…...

    2024/5/4 23:55:17
  17. 氧生福地 玩美北湖(上)——为时光守候两千年

    原标题:氧生福地 玩美北湖(上)——为时光守候两千年一次说走就走的旅行,只有一张高铁票的距离~ 所以,湖南郴州,我来了~ 从广州南站出发,一个半小时就到达郴州西站了。在动车上,同时改票的南风兄和我居然被分到了一个车厢,所以一路非常愉快地聊了过来。 挺好,最起…...

    2024/5/7 9:26:26
  18. 氧生福地 玩美北湖(中)——永春梯田里的美与鲜

    原标题:氧生福地 玩美北湖(中)——永春梯田里的美与鲜一觉醒来,因为大家太爱“美”照,在柳毅山庄去寻找龙女而错过了早餐时间。近十点,向导坏坏还是带着饥肠辘辘的我们去吃郴州最富有盛名的“鱼头粉”。说这是“十二分推荐”,到郴州必吃的美食之一。 哇塞!那个味美香甜…...

    2024/5/4 23:54:56
  19. 氧生福地 玩美北湖(下)——奔跑吧骚年!

    原标题:氧生福地 玩美北湖(下)——奔跑吧骚年!让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 啊……啊……啊 两…...

    2024/5/4 23:55:06
  20. 扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!

    原标题:扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!扒开伪装医用面膜,翻六倍价格宰客!当行业里的某一品项火爆了,就会有很多商家蹭热度,装逼忽悠,最近火爆朋友圈的医用面膜,被沾上了污点,到底怎么回事呢? “比普通面膜安全、效果好!痘痘、痘印、敏感肌都能用…...

    2024/5/5 8:13:33
  21. 「发现」铁皮石斛仙草之神奇功效用于医用面膜

    原标题:「发现」铁皮石斛仙草之神奇功效用于医用面膜丽彦妆铁皮石斛医用面膜|石斛多糖无菌修护补水贴19大优势: 1、铁皮石斛:自唐宋以来,一直被列为皇室贡品,铁皮石斛生于海拔1600米的悬崖峭壁之上,繁殖力差,产量极低,所以古代仅供皇室、贵族享用 2、铁皮石斛自古民间…...

    2024/5/4 23:55:16
  22. 丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者

    原标题:丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者【公司简介】 广州华彬企业隶属香港华彬集团有限公司,专注美业21年,其旗下品牌: 「圣茵美」私密荷尔蒙抗衰,产后修复 「圣仪轩」私密荷尔蒙抗衰,产后修复 「花茵莳」私密荷尔蒙抗衰,产后修复 「丽彦妆」专注医学护…...

    2024/5/4 23:54:58
  23. 广州械字号面膜生产厂家OEM/ODM4项须知!

    原标题:广州械字号面膜生产厂家OEM/ODM4项须知!广州械字号面膜生产厂家OEM/ODM流程及注意事项解读: 械字号医用面膜,其实在我国并没有严格的定义,通常我们说的医美面膜指的应该是一种「医用敷料」,也就是说,医用面膜其实算作「医疗器械」的一种,又称「医用冷敷贴」。 …...

    2024/5/6 21:42:42
  24. 械字号医用眼膜缓解用眼过度到底有无作用?

    原标题:械字号医用眼膜缓解用眼过度到底有无作用?医用眼膜/械字号眼膜/医用冷敷眼贴 凝胶层为亲水高分子材料,含70%以上的水分。体表皮肤温度传导到本产品的凝胶层,热量被凝胶内水分子吸收,通过水分的蒸发带走大量的热量,可迅速地降低体表皮肤局部温度,减轻局部皮肤的灼…...

    2024/5/4 23:54:56
  25. 配置失败还原请勿关闭计算机,电脑开机屏幕上面显示,配置失败还原更改 请勿关闭计算机 开不了机 这个问题怎么办...

    解析如下&#xff1a;1、长按电脑电源键直至关机&#xff0c;然后再按一次电源健重启电脑&#xff0c;按F8健进入安全模式2、安全模式下进入Windows系统桌面后&#xff0c;按住“winR”打开运行窗口&#xff0c;输入“services.msc”打开服务设置3、在服务界面&#xff0c;选中…...

    2022/11/19 21:17:18
  26. 错误使用 reshape要执行 RESHAPE,请勿更改元素数目。

    %读入6幅图像&#xff08;每一幅图像的大小是564*564&#xff09; f1 imread(WashingtonDC_Band1_564.tif); subplot(3,2,1),imshow(f1); f2 imread(WashingtonDC_Band2_564.tif); subplot(3,2,2),imshow(f2); f3 imread(WashingtonDC_Band3_564.tif); subplot(3,2,3),imsho…...

    2022/11/19 21:17:16
  27. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机...

    win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”问题的解决方法在win7系统关机时如果有升级系统的或者其他需要会直接进入一个 等待界面&#xff0c;在等待界面中我们需要等待操作结束才能关机&#xff0c;虽然这比较麻烦&#xff0c;但是对系统进行配置和升级…...

    2022/11/19 21:17:15
  28. 台式电脑显示配置100%请勿关闭计算机,“准备配置windows 请勿关闭计算机”的解决方法...

    有不少用户在重装Win7系统或更新系统后会遇到“准备配置windows&#xff0c;请勿关闭计算机”的提示&#xff0c;要过很久才能进入系统&#xff0c;有的用户甚至几个小时也无法进入&#xff0c;下面就教大家这个问题的解决方法。第一种方法&#xff1a;我们首先在左下角的“开始…...

    2022/11/19 21:17:14
  29. win7 正在配置 请勿关闭计算机,怎么办Win7开机显示正在配置Windows Update请勿关机...

    置信有很多用户都跟小编一样遇到过这样的问题&#xff0c;电脑时发现开机屏幕显现“正在配置Windows Update&#xff0c;请勿关机”(如下图所示)&#xff0c;而且还需求等大约5分钟才干进入系统。这是怎样回事呢&#xff1f;一切都是正常操作的&#xff0c;为什么开时机呈现“正…...

    2022/11/19 21:17:13
  30. 准备配置windows 请勿关闭计算机 蓝屏,Win7开机总是出现提示“配置Windows请勿关机”...

    Win7系统开机启动时总是出现“配置Windows请勿关机”的提示&#xff0c;没过几秒后电脑自动重启&#xff0c;每次开机都这样无法进入系统&#xff0c;此时碰到这种现象的用户就可以使用以下5种方法解决问题。方法一&#xff1a;开机按下F8&#xff0c;在出现的Windows高级启动选…...

    2022/11/19 21:17:12
  31. 准备windows请勿关闭计算机要多久,windows10系统提示正在准备windows请勿关闭计算机怎么办...

    有不少windows10系统用户反映说碰到这样一个情况&#xff0c;就是电脑提示正在准备windows请勿关闭计算机&#xff0c;碰到这样的问题该怎么解决呢&#xff0c;现在小编就给大家分享一下windows10系统提示正在准备windows请勿关闭计算机的具体第一种方法&#xff1a;1、2、依次…...

    2022/11/19 21:17:11
  32. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”的解决方法...

    今天和大家分享一下win7系统重装了Win7旗舰版系统后&#xff0c;每次关机的时候桌面上都会显示一个“配置Windows Update的界面&#xff0c;提示请勿关闭计算机”&#xff0c;每次停留好几分钟才能正常关机&#xff0c;导致什么情况引起的呢&#xff1f;出现配置Windows Update…...

    2022/11/19 21:17:10
  33. 电脑桌面一直是清理请关闭计算机,windows7一直卡在清理 请勿关闭计算机-win7清理请勿关机,win7配置更新35%不动...

    只能是等着&#xff0c;别无他法。说是卡着如果你看硬盘灯应该在读写。如果从 Win 10 无法正常回滚&#xff0c;只能是考虑备份数据后重装系统了。解决来方案一&#xff1a;管理员运行cmd&#xff1a;net stop WuAuServcd %windir%ren SoftwareDistribution SDoldnet start WuA…...

    2022/11/19 21:17:09
  34. 计算机配置更新不起,电脑提示“配置Windows Update请勿关闭计算机”怎么办?

    原标题&#xff1a;电脑提示“配置Windows Update请勿关闭计算机”怎么办&#xff1f;win7系统中在开机与关闭的时候总是显示“配置windows update请勿关闭计算机”相信有不少朋友都曾遇到过一次两次还能忍但经常遇到就叫人感到心烦了遇到这种问题怎么办呢&#xff1f;一般的方…...

    2022/11/19 21:17:08
  35. 计算机正在配置无法关机,关机提示 windows7 正在配置windows 请勿关闭计算机 ,然后等了一晚上也没有关掉。现在电脑无法正常关机...

    关机提示 windows7 正在配置windows 请勿关闭计算机 &#xff0c;然后等了一晚上也没有关掉。现在电脑无法正常关机以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;关机提示 windows7 正在配…...

    2022/11/19 21:17:05
  36. 钉钉提示请勿通过开发者调试模式_钉钉请勿通过开发者调试模式是真的吗好不好用...

    钉钉请勿通过开发者调试模式是真的吗好不好用 更新时间:2020-04-20 22:24:19 浏览次数:729次 区域: 南阳 > 卧龙 列举网提醒您:为保障您的权益,请不要提前支付任何费用! 虚拟位置外设器!!轨迹模拟&虚拟位置外设神器 专业用于:钉钉,外勤365,红圈通,企业微信和…...

    2022/11/19 21:17:05
  37. 配置失败还原请勿关闭计算机怎么办,win7系统出现“配置windows update失败 还原更改 请勿关闭计算机”,长时间没反应,无法进入系统的解决方案...

    前几天班里有位学生电脑(windows 7系统)出问题了&#xff0c;具体表现是开机时一直停留在“配置windows update失败 还原更改 请勿关闭计算机”这个界面&#xff0c;长时间没反应&#xff0c;无法进入系统。这个问题原来帮其他同学也解决过&#xff0c;网上搜了不少资料&#x…...

    2022/11/19 21:17:04
  38. 一个电脑无法关闭计算机你应该怎么办,电脑显示“清理请勿关闭计算机”怎么办?...

    本文为你提供了3个有效解决电脑显示“清理请勿关闭计算机”问题的方法&#xff0c;并在最后教给你1种保护系统安全的好方法&#xff0c;一起来看看&#xff01;电脑出现“清理请勿关闭计算机”在Windows 7(SP1)和Windows Server 2008 R2 SP1中&#xff0c;添加了1个新功能在“磁…...

    2022/11/19 21:17:03
  39. 请勿关闭计算机还原更改要多久,电脑显示:配置windows更新失败,正在还原更改,请勿关闭计算机怎么办...

    许多用户在长期不使用电脑的时候&#xff0c;开启电脑发现电脑显示&#xff1a;配置windows更新失败&#xff0c;正在还原更改&#xff0c;请勿关闭计算机。。.这要怎么办呢&#xff1f;下面小编就带着大家一起看看吧&#xff01;如果能够正常进入系统&#xff0c;建议您暂时移…...

    2022/11/19 21:17:02
  40. 还原更改请勿关闭计算机 要多久,配置windows update失败 还原更改 请勿关闭计算机,电脑开机后一直显示以...

    配置windows update失败 还原更改 请勿关闭计算机&#xff0c;电脑开机后一直显示以以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;配置windows update失败 还原更改 请勿关闭计算机&#x…...

    2022/11/19 21:17:01
  41. 电脑配置中请勿关闭计算机怎么办,准备配置windows请勿关闭计算机一直显示怎么办【图解】...

    不知道大家有没有遇到过这样的一个问题&#xff0c;就是我们的win7系统在关机的时候&#xff0c;总是喜欢显示“准备配置windows&#xff0c;请勿关机”这样的一个页面&#xff0c;没有什么大碍&#xff0c;但是如果一直等着的话就要两个小时甚至更久都关不了机&#xff0c;非常…...

    2022/11/19 21:17:00
  42. 正在准备配置请勿关闭计算机,正在准备配置windows请勿关闭计算机时间长了解决教程...

    当电脑出现正在准备配置windows请勿关闭计算机时&#xff0c;一般是您正对windows进行升级&#xff0c;但是这个要是长时间没有反应&#xff0c;我们不能再傻等下去了。可能是电脑出了别的问题了&#xff0c;来看看教程的说法。正在准备配置windows请勿关闭计算机时间长了方法一…...

    2022/11/19 21:16:59
  43. 配置失败还原请勿关闭计算机,配置Windows Update失败,还原更改请勿关闭计算机...

    我们使用电脑的过程中有时会遇到这种情况&#xff0c;当我们打开电脑之后&#xff0c;发现一直停留在一个界面&#xff1a;“配置Windows Update失败&#xff0c;还原更改请勿关闭计算机”&#xff0c;等了许久还是无法进入系统。如果我们遇到此类问题应该如何解决呢&#xff0…...

    2022/11/19 21:16:58
  44. 如何在iPhone上关闭“请勿打扰”

    Apple’s “Do Not Disturb While Driving” is a potentially lifesaving iPhone feature, but it doesn’t always turn on automatically at the appropriate time. For example, you might be a passenger in a moving car, but your iPhone may think you’re the one dri…...

    2022/11/19 21:16:57