Skip to content

Commit

Permalink
Add custom types on cypher thread + apply bolt types on receive
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarhane committed Mar 7, 2018
1 parent ba9eef1 commit ee86237
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/shared/services/bolt/bolt.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ function routedWriteTransaction (
record._fieldLookup
)
if (typedRecord._fields) {
typedRecord._fields = typedRecord._fields.map(field =>
mappings.applyGraphTypes(field)
typedRecord._fields = mappings.applyGraphTypes(
typedRecord._fields
)
}
return typedRecord
Expand Down
4 changes: 2 additions & 2 deletions src/shared/services/bolt/boltWorkerMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import { recursivelyTypeGraphItems } from './boltMappings'
export const RUN_CYPHER_MESSAGE = 'RUN_CYPHER_MESSAGE'
export const CANCEL_TRANSACTION_MESSAGE = 'CANCEL_TRANSACTION_MESSAGE'
export const CYPHER_ERROR_MESSAGE = 'CYPHER_ERROR_MESSAGE'
Expand Down Expand Up @@ -51,7 +51,7 @@ export const cancelTransactionMessage = id => {
export const cypherResponseMessage = result => {
return {
type: CYPHER_RESPONSE_MESSAGE,
result
result: recursivelyTypeGraphItems(result)
}
}

Expand Down

0 comments on commit ee86237

Please sign in to comment.