Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: roll back graphQL custom field reference #816

Merged
merged 39 commits into from
Sep 22, 2023
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
9604c91
fix: graphQL custom field reference
pozil Jun 15, 2023
d5aaa1f
Multi object query graphql recipe (#817)
albarivas Jun 27, 2023
55a3229
docs: clarify listViewApiName needs updated if not using recipe org (…
spencer-brooks-sf Jun 28, 2023
59cbcff
build(deps-dev): bump @lwc/eslint-plugin-lwc from 1.6.2 to 1.6.3
dependabot[bot] Jul 1, 2023
7ede2b6
build(deps-dev): bump eslint-plugin-jest from 27.2.1 to 27.2.2
dependabot[bot] Jul 1, 2023
ba887b6
build(deps-dev): bump eslint from 8.42.0 to 8.44.0
dependabot[bot] Jul 2, 2023
205a71a
build(deps-dev): bump @salesforce/eslint-config-lwc from 3.4.0 to 3.5.0
dependabot[bot] Jul 2, 2023
8e919de
build(deps-dev): bump jest-canvas-mock from 2.5.1 to 2.5.2
dependabot[bot] Jul 2, 2023
be634fd
build(deps-dev): bump @sa11y/jest from 5.1.0 to 5.2.0
dependabot[bot] Jul 3, 2023
b48c87f
build(deps-dev): bump lint-staged from 13.2.2 to 13.2.3
dependabot[bot] Jul 3, 2023
2dbf8aa
build(deps-dev): bump word-wrap from 1.2.3 to 1.2.4
dependabot[bot] Jul 18, 2023
fd16dde
ci: moved default issue assignee to variable
pozil Jul 25, 2023
087a6e3
ci: clean/align conditions syntax
pozil Jul 25, 2023
cd5ff45
ci: merged regular and prerelease worflows
pozil Jul 25, 2023
8686d7e
ci: fix prerelease PR check
pozil Jul 26, 2023
9e66950
feat: upgraded in-app guidance
Aug 1, 2023
4404ed1
ci: conditional pre-release build
pozil Aug 2, 2023
7ce1772
build(deps-dev): bump eslint-plugin-import from 2.27.5 to 2.28.0
dependabot[bot] Aug 2, 2023
d4f7ea7
build(deps-dev): bump eslint-plugin-jest from 27.2.2 to 27.2.3
dependabot[bot] Aug 2, 2023
8a8558b
build(deps-dev): bump eslint from 8.44.0 to 8.46.0
dependabot[bot] Aug 2, 2023
61b35ac
ci: simplified packaging PR process
pozil Aug 3, 2023
66a840b
build(deps-dev): bump @salesforce/eslint-config-lwc from 3.5.0 to 3.5.2
dependabot[bot] Aug 4, 2023
47a9e75
build: bumped dependencies
pozil Aug 4, 2023
49a4bf3
build: bumped dependencies
pozil Aug 4, 2023
ed34744
feat: migrated from promises to async/await (#836)
pozil Aug 8, 2023
5414643
Released new package version 04t3t0000037toQAAQ (#837)
trailheadapps-bot Aug 8, 2023
43d31bf
feat: simplified test code
pozil Aug 9, 2023
2c78fea
Released new package version 04t3t0000037tozAAA (#838)
trailheadapps-bot Aug 9, 2023
fa12b19
feat: shortened function body
pozil Aug 9, 2023
9b7dfb9
Released new package version 04t3t0000037tp9AAA (#839)
trailheadapps-bot Aug 9, 2023
9043add
feat: align test comments
pozil Aug 9, 2023
731706c
Released new package version 04t3t0000037tpEAAQ (#840)
trailheadapps-bot Aug 9, 2023
e9469b1
Merge branch 'main' into pozil/graphql-custom-field
pozil Aug 28, 2023
db93381
Merge branch 'prerelease/winter24' into pozil/graphql-custom-field
pozil Sep 22, 2023
7e38756
build: upgraded to API v59.0
pozil Sep 22, 2023
5a535c4
Multi object query graphql recipe (#817)
albarivas Jun 27, 2023
545c9f4
build: bumped dependencies
pozil Aug 4, 2023
4fcd837
feat: migrated from promises to async/await (#836)
pozil Aug 8, 2023
df20bab
feat: align test comments
pozil Aug 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions force-app/main/default/lwc/graphqlContacts/graphqlContacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ export default class GraphqlContacts extends LightningElement {
query getContacts {
uiapi {
query {
Contact(first: 5, orderBy: { Name: { order: ASC } }) {
Contact(
where: { Picture__c: { ne: null } }
first: 5
orderBy: { Name: { order: ASC } }
) {
edges {
node {
Id
Expand All @@ -17,6 +21,14 @@ export default class GraphqlContacts extends LightningElement {
Phone {
value
}
# We specify an alias for this custom field to ensure
# that we can find it in the result even if Salesforce's
# referential integrity logic updates the name. API names
# for standard fields do not change, so no aliases are
# needed for those.
Picture__c: Picture__c {
value
}
Title {
value
}
Expand All @@ -35,7 +47,7 @@ export default class GraphqlContacts extends LightningElement {
Id: edge.node.Id,
Name: edge.node.Name.value,
Phone: edge.node.Phone.value,
Picture__c: null, // Temporary workaround for a bug that prevents using custom fields in GraphQL
Picture__c: edge.node.Picture__c.value,
Title: edge.node.Title.value
}));
}
Expand Down