Skip to content

Commit 536a09f

Browse files
author
Ilja Lapkovskis
committed
Remove backport and overrides for M2.3.1 compatibility
1 parent 95e03f5 commit 536a09f

23 files changed

+4
-2112
lines changed

README.md

+3-75
Original file line numberDiff line numberDiff line change
@@ -3,82 +3,10 @@
33
**CustomerGraphQl** provides type and resolver information for the GraphQl module
44
to generate customer information endpoints.
55

6-
This module implements the M2 dev customer endpoints and provides new.
6+
This module extends the M2 GraphQl customer queries and mutations.
77
New endpoints will be documented in future releases.
88

9-
Modules is divided in two parts:
10-
- `overwrite` – simply overwrites M2 core files with M2 dev customer account features
11-
- `src` – the ScandiPWA module with updated GraphQL schema and new Resolver for new fields.
12-
13-
## Custom endpoint documentation
14-
15-
### Mutation `createCustomer`
16-
17-
Here is an example use of it:
18-
19-
```graphql
20-
mutation CreateCustomer(
21-
$firstname: String!
22-
$password: String!
23-
$lastname: String!
24-
$email: String!
25-
$addresses: [CreateCustomerAddressInput!]
26-
) {
27-
createCustomer(
28-
customer: {
29-
firstname: $firstname
30-
lastname: $lastname
31-
email: $email
32-
addresses: $addresses
33-
}
34-
password: $password
35-
) {
36-
status
37-
token
38-
customer {
39-
id
40-
firstname
41-
lastname
42-
email
43-
is_subscribed
44-
addresses {
45-
city
46-
country_id
47-
street
48-
telephone
49-
firstname
50-
lastname
51-
postcode
52-
street
53-
default_shipping
54-
default_billing
55-
}
56-
}
57-
}
58-
}
59-
```
60-
61-
The variables for input above might look like:
62-
63-
```json
64-
{
65-
"firstname": "Alfred",
66-
"lastname": "Genkin",
67-
"email": "[email protected]",
68-
"password": "Testing123_",
69-
"addresses": [
70-
{
71-
"firstname": "Alfreds",
72-
"lastname": "Genkins",
73-
"telephone": "22522240",
74-
"country_id": "US",
75-
"city": "My awesome city",
76-
"street": [ "My cool street 11" ],
77-
"postcode": "My awesome US postal code"
78-
}
79-
]
80-
}
81-
```
9+
## Custom query documentation
8210

8311
### Mutation `forgotPassword`
8412

@@ -200,4 +128,4 @@ The variables for input above might look like:
200128
{
201129
"email": "[email protected]"
202130
}
203-
```
131+
```

composer.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
"description": "N/A",
44
"type": "magento2-module",
55
"require": {
6-
"magento/product-community-edition": "2.3.0"
7-
},
8-
"suggest": {
9-
"magento/module-graph-ql": "*"
6+
"magento/product-community-edition": "2.3.1"
107
},
118
"license": [
129
"OSL-3.0",
@@ -17,7 +14,6 @@
1714
"src/registration.php"
1815
],
1916
"psr-4": {
20-
"Magento\\CustomerGraphQl\\": "overwrite",
2117
"ScandiPWA\\CustomerGraphQl\\": "src"
2218
}
2319
}

overwrite/Model/Customer/Address/CustomerAddressCreateDataValidator.php

-56
This file was deleted.

overwrite/Model/Customer/Address/CustomerAddressDataProvider.php

-127
This file was deleted.

overwrite/Model/Customer/Address/CustomerAddressUpdateDataValidator.php

-56
This file was deleted.

0 commit comments

Comments
 (0)